pub enum Weekday {
Monday,
Tuesday,
Wednesday,
Thursday,
Friday,
Saturday,
Sunday,
}Expand description
Stored and sent by its name, as an enum’s variant is; its labels are the weekday enum’s.
Variants§
Implementations§
Trait Implementations§
Source§impl Cast for Weekday
impl Cast for Weekday
const COLUMNS: &'static [ColumnSpec]
fn encode(&self, out: &mut Vec<SqlValue>)
fn decode(row: &mut dyn ColumnReader) -> Result<Self>
const NULLABLE: bool = false
Source§const SENSITIVE: bool = false
const SENSITIVE: bool = false
A field holding it is never filtered, sorted, listed or searched, as
#[sensitive] ones.Source§const MOVES: Option<fn(&Self) -> Option<&'static Targets>> = None
const MOVES: Option<fn(&Self) -> Option<&'static Targets>> = None
Set for a value moving between listed states; a save of any other value skips the check.
Source§const HOLDS_STATES: bool
const HOLDS_STATES: bool
Set when a state anywhere in the value is checked on save, as a field’s of several.
fn refuse_unlisted_move( field: &str, stored: &Self, current: &Self, ) -> Result<(), Error>
impl Copy for Weekday
Source§impl<'de> Deserialize<'de> for Weekday
impl<'de> Deserialize<'de> for Weekday
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Weekday
impl StructuralPartialEq for Weekday
Source§impl Variants for Weekday
impl Variants for Weekday
const TYPE: &'static str = "Weekday"
const VARIANTS: &'static [(&'static str, Self)]
Source§const PATH: &'static str = Self::TYPE
const PATH: &'static str = Self::TYPE
Module-qualified, so two enums of one name keep their recorded moves apart.
const TRANSITIONS: &'static [(Self, Self)]
fn name(self) -> &'static str
Auto Trait Implementations§
impl Forget for Weekday
impl Freeze for Weekday
impl RefUnwindSafe for Weekday
impl Send for Weekday
impl Sync for Weekday
impl Unpin for Weekday
impl UnsafeUnpin for Weekday
impl UnwindSafe for Weekday
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