#[non_exhaustive]pub struct StrippedRoomData {
pub stripped_state: Vec<Raw<AnyStrippedStateEvent>>,
}Available on crate feature
api and crate feature unstable-msc4186 and (crate features client-api-c or client-api-s) 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>>) -> StrippedRoomData
pub fn new(stripped_state: Vec<Raw<AnyStrippedStateEvent>>) -> StrippedRoomData
Creates a new StrippedRoomData with the given stripped state.
Trait Implementations§
Source§impl Clone for StrippedRoomData
impl Clone for StrippedRoomData
Source§fn clone(&self) -> StrippedRoomData
fn clone(&self) -> StrippedRoomData
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 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<StrippedRoomData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StrippedRoomData, <__D as Deserializer<'de>>::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) -> RoomData
fn from(value: StrippedRoomData) -> RoomData
Converts to this type from the input type.
Source§impl Serialize for StrippedRoomData
impl Serialize for StrippedRoomData
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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