pub struct ReasonPayload {
pub reason: Option<String>,
pub references: Vec<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
Shared payload of room.leave, room.close, and room.cancel.
Fields§
§reason: Option<String>§references: Vec<String>§extra: BTreeMap<String, Value>Trait Implementations§
Source§impl Clone for ReasonPayload
impl Clone for ReasonPayload
Source§fn clone(&self) -> ReasonPayload
fn clone(&self) -> ReasonPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReasonPayload
impl Debug for ReasonPayload
Source§impl Default for ReasonPayload
impl Default for ReasonPayload
Source§fn default() -> ReasonPayload
fn default() -> ReasonPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReasonPayload
impl<'de> Deserialize<'de> for ReasonPayload
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 PartialEq for ReasonPayload
impl PartialEq for ReasonPayload
Source§fn eq(&self, other: &ReasonPayload) -> bool
fn eq(&self, other: &ReasonPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReasonPayload
impl Serialize for ReasonPayload
impl StructuralPartialEq for ReasonPayload
Auto Trait Implementations§
impl Freeze for ReasonPayload
impl RefUnwindSafe for ReasonPayload
impl Send for ReasonPayload
impl Sync for ReasonPayload
impl Unpin for ReasonPayload
impl UnsafeUnpin for ReasonPayload
impl UnwindSafe for ReasonPayload
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