pub enum TimeKeyword {
Day,
Noon,
Dusk,
Night,
Midnight,
Dawn,
}Expand description
The six keyword spellings of a WorldTime — the wire and schema form of
its keyword half.
Variants§
Day
Morning daylight (/time set day, 1000 ticks).
Noon
Midday, brightest (/time set noon, 6000 ticks).
Dusk
Sunset — the sky visibly going orange and the day ending
(/time set 12000). Deliberately NOT 13000: that is the instant the sun
has finished setting, which is what the night keyword already sets, so
13000 would make dusk a synonym rather than its own beat.
Night
Night, sun fully down (/time set night, 13000 ticks).
Midnight
Deep night, darkest (/time set midnight, 18000 ticks).
Dawn
First light, just before sunrise (/time set 23000). Spelled dawn;
sunrise is accepted as a synonym on input.
Trait Implementations§
Source§impl Clone for TimeKeyword
impl Clone for TimeKeyword
impl Copy for TimeKeyword
Source§impl Debug for TimeKeyword
impl Debug for TimeKeyword
Source§impl<'de> Deserialize<'de> for TimeKeyword
impl<'de> Deserialize<'de> for TimeKeyword
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TimeKeyword
Source§impl From<TimeKeyword> for WorldTime
impl From<TimeKeyword> for WorldTime
Source§fn from(k: TimeKeyword) -> WorldTime
fn from(k: TimeKeyword) -> WorldTime
Converts to this type from the input type.
Source§impl JsonSchema for TimeKeyword
impl JsonSchema for TimeKeyword
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TimeKeyword
impl PartialEq for TimeKeyword
Source§impl Serialize for TimeKeyword
impl Serialize for TimeKeyword
impl StructuralPartialEq for TimeKeyword
Auto Trait Implementations§
impl Freeze for TimeKeyword
impl RefUnwindSafe for TimeKeyword
impl Send for TimeKeyword
impl Sync for TimeKeyword
impl Unpin for TimeKeyword
impl UnsafeUnpin for TimeKeyword
impl UnwindSafe for TimeKeyword
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