pub struct Timeout {
pub member_id: MemberId,
pub until: Option<u64>,
pub reason: Option<String>,
}Expand description
member.timeout (§8.3). until is absolute; the 28-day bound needs the host clock, so
it is checked by Command::validate_at.
Fields§
§member_id: MemberIdThe member.
until: Option<u64>End of the timeout, ms; null clears. Required.
reason: Option<String>≤ 512 scalars.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Timeout
impl<'de> Deserialize<'de> for Timeout
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 Timeout
impl StructuralPartialEq for Timeout
Auto Trait Implementations§
impl Freeze for Timeout
impl RefUnwindSafe for Timeout
impl Send for Timeout
impl Sync for Timeout
impl Unpin for Timeout
impl UnsafeUnpin for Timeout
impl UnwindSafe for Timeout
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