Struct ::exo::Reference

Overview

Reference type, which is an uuid, referencing another record

Methods

fn new() -> Reference

Creates a new empty Reference with a nil Uuid.

fn nil() -> Reference

Creates a new empty Reference with a nil Uuid.

fn random() -> Reference

Creates a new Reference with a random Uuid.

fn try_from(value) -> Result

Tries to create a new Reference from a generic value.

Return the reference as string

Protocols

protocol partial_eq
if value == b { }

Allows for partial equality operations to work.

protocol string_debug
println("{:?}", value)

Allows the value to be debug printed.

protocol string_display
println("{}", value)

Allows the value to be display printed.