Skip to main content

State

pub trait State: Sealed {
    type CreatedAt;
    type Disabled;
    type Available;
    type Code;
    type ForAccount;
    type Uses;
    type CreatedBy;
}
Expand description

State trait tracking which required fields have been set

Required Associated Types§

Implementors§

Source§

impl State for Empty

Source§

impl<S: State> State for SetAvailable<S>

Source§

impl<S: State> State for SetCode<S>

Source§

impl<S: State> State for SetCreatedAt<S>

Source§

impl<S: State> State for SetCreatedBy<S>

Source§

impl<S: State> State for SetDisabled<S>

Source§

impl<S: State> State for SetForAccount<S>

Source§

impl<S: State> State for SetUses<S>