pub enum Tier {
Stored,
Computed,
TryComputed,
}Expand description
Which TIER one field of the contract is in.
A vocabulary rather than a pair of flags, because the three are mutually exclusive by construction — which is what makes “computed beside persist” a front-end refusal rather than a state some later pass has to remember cannot happen.
Variants§
Stored
A stored column: every member’s row carries it, and the interface pins its type per database.
Computed
graphql(computed): every member DERIVES the value, and cannot fail doing it.
TryComputed
graphql(try_computed): every member derives it and may refuse.
Implementations§
Trait Implementations§
impl Copy for Tier
impl Eq for Tier
Source§impl Ord for Tier
impl Ord for Tier
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Tier
impl PartialOrd for Tier
impl StructuralPartialEq for Tier
Auto Trait Implementations§
impl Freeze for Tier
impl RefUnwindSafe for Tier
impl Send for Tier
impl Sync for Tier
impl Unpin for Tier
impl UnsafeUnpin for Tier
impl UnwindSafe for Tier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more