#[non_exhaustive]pub struct StrippedRoomData {
pub stripped_state: Vec<Raw<AnyStrippedStateEvent>>,
}Available on crate feature
unstable-msc4186 and (crate features client or server) only.Expand description
The data of a room the user has not been joined to (see RoomData::Stripped).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stripped_state: Vec<Raw<AnyStrippedStateEvent>>Stripped state events of the room.
Implementations§
Source§impl StrippedRoomData
impl StrippedRoomData
Sourcepub fn new(stripped_state: Vec<Raw<AnyStrippedStateEvent>>) -> Self
pub fn new(stripped_state: Vec<Raw<AnyStrippedStateEvent>>) -> Self
Creates a new StrippedRoomData with the given stripped state.
Trait Implementations§
Source§impl Clone for StrippedRoomData
impl Clone for StrippedRoomData
Source§impl Debug for StrippedRoomData
impl Debug for StrippedRoomData
Source§impl<'de> Deserialize<'de> for StrippedRoomData
impl<'de> Deserialize<'de> for StrippedRoomData
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 From<StrippedRoomData> for RoomData
impl From<StrippedRoomData> for RoomData
Source§fn from(value: StrippedRoomData) -> Self
fn from(value: StrippedRoomData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for StrippedRoomData
impl Freeze for StrippedRoomData
impl Move for StrippedRoomData
impl RefUnwindSafe for StrippedRoomData
impl Send for StrippedRoomData
impl Sync for StrippedRoomData
impl Unpin for StrippedRoomData
impl UnsafeUnpin for StrippedRoomData
impl UnwindSafe for StrippedRoomData
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