pub enum Timelength {
Show 21 variants
OneSecond,
FiveSeconds,
TenSeconds,
FifteenSeconds,
ThirtySeconds,
OneMinute,
TwoMinutes,
FiveMinutes,
TenMinutes,
FifteenMinutes,
ThirtyMinutes,
OneHour,
TwoHours,
SixHours,
EightHours,
TwelveHours,
OneDay,
ThreeDay,
OneWeek,
TwoWeeks,
ThirtyDays,
}Expand description
Represents various standard lengths of time.
Variants§
OneSecond
FiveSeconds
TenSeconds
FifteenSeconds
ThirtySeconds
OneMinute
TwoMinutes
FiveMinutes
TenMinutes
FifteenMinutes
ThirtyMinutes
OneHour
TwoHours
SixHours
EightHours
TwelveHours
OneDay
ThreeDay
OneWeek
TwoWeeks
ThirtyDays
Trait Implementations§
Source§impl AsRef<str> for Timelength
impl AsRef<str> for Timelength
Source§impl Clone for Timelength
impl Clone for Timelength
Source§fn clone(&self) -> Timelength
fn clone(&self) -> Timelength
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Timelength
impl Debug for Timelength
Source§impl<'de> Deserialize<'de> for Timelength
impl<'de> Deserialize<'de> for Timelength
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
Source§impl Display for Timelength
impl Display for Timelength
Source§impl<'_derivative_strum> From<&'_derivative_strum Timelength> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum Timelength> for &'static str
Source§fn from(x: &'_derivative_strum Timelength) -> &'static str
fn from(x: &'_derivative_strum Timelength) -> &'static str
Converts to this type from the input type.
Source§impl From<Timelength> for &'static str
impl From<Timelength> for &'static str
Source§fn from(x: Timelength) -> &'static str
fn from(x: Timelength) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for Timelength
impl FromStr for Timelength
Source§impl Hash for Timelength
impl Hash for Timelength
Source§impl PartialEq for Timelength
impl PartialEq for Timelength
Source§impl Serialize for Timelength
impl Serialize for Timelength
Source§impl TryFrom<&str> for Timelength
impl TryFrom<&str> for Timelength
impl Copy for Timelength
impl Eq for Timelength
impl StructuralPartialEq for Timelength
Auto Trait Implementations§
impl Freeze for Timelength
impl RefUnwindSafe for Timelength
impl Send for Timelength
impl Sync for Timelength
impl Unpin for Timelength
impl UnwindSafe for Timelength
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