pub enum WaitTime {
Value(u64),
Unlimited,
}Expand description
A wait time in seconds, or unlimited.
Like Seconds but serializes the unbounded case as unlimited, the word
maximum_wait_time documents.
Variants§
Trait Implementations§
impl Copy for WaitTime
Source§impl<'de> Deserialize<'de> for WaitTime
impl<'de> Deserialize<'de> for WaitTime
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 WaitTime
impl StructuralPartialEq for WaitTime
Auto Trait Implementations§
impl Freeze for WaitTime
impl RefUnwindSafe for WaitTime
impl Send for WaitTime
impl Sync for WaitTime
impl Unpin for WaitTime
impl UnsafeUnpin for WaitTime
impl UnwindSafe for WaitTime
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