pub struct RoomMemberRemovePayload {
pub member: AgentId,
pub ban: Option<bool>,
pub reason: Option<String>,
pub references: Vec<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
Payload of room.member.remove: removal and optional ban.
Fields§
§member: AgentId§ban: Option<bool>Defaults to false. true additionally bans the agent from the room.
reason: Option<String>§references: Vec<String>§extra: BTreeMap<String, Value>Implementations§
Trait Implementations§
Source§impl Clone for RoomMemberRemovePayload
impl Clone for RoomMemberRemovePayload
Source§fn clone(&self) -> RoomMemberRemovePayload
fn clone(&self) -> RoomMemberRemovePayload
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 RoomMemberRemovePayload
impl Debug for RoomMemberRemovePayload
Source§impl<'de> Deserialize<'de> for RoomMemberRemovePayload
impl<'de> Deserialize<'de> for RoomMemberRemovePayload
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 RoomMemberRemovePayload
impl PartialEq for RoomMemberRemovePayload
Source§fn eq(&self, other: &RoomMemberRemovePayload) -> bool
fn eq(&self, other: &RoomMemberRemovePayload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RoomMemberRemovePayload
impl Serialize for RoomMemberRemovePayload
impl StructuralPartialEq for RoomMemberRemovePayload
Auto Trait Implementations§
impl Freeze for RoomMemberRemovePayload
impl RefUnwindSafe for RoomMemberRemovePayload
impl Send for RoomMemberRemovePayload
impl Sync for RoomMemberRemovePayload
impl Unpin for RoomMemberRemovePayload
impl UnsafeUnpin for RoomMemberRemovePayload
impl UnwindSafe for RoomMemberRemovePayload
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