#[non_exhaustive]pub struct PossiblyRedactedStateRoomEncryptedEventContent {
pub scheme: Option<EncryptedEventScheme>,
}
Expand description
The possibly redacted form of StateRoomEncryptedEventContent
.
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.scheme: Option<EncryptedEventScheme>
Algorithm-specific fields.
Trait Implementations§
Source§impl Clone for PossiblyRedactedStateRoomEncryptedEventContent
impl Clone for PossiblyRedactedStateRoomEncryptedEventContent
Source§fn clone(&self) -> PossiblyRedactedStateRoomEncryptedEventContent
fn clone(&self) -> PossiblyRedactedStateRoomEncryptedEventContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for PossiblyRedactedStateRoomEncryptedEventContent
impl Default for PossiblyRedactedStateRoomEncryptedEventContent
Source§fn default() -> PossiblyRedactedStateRoomEncryptedEventContent
fn default() -> PossiblyRedactedStateRoomEncryptedEventContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PossiblyRedactedStateRoomEncryptedEventContent
impl<'de> Deserialize<'de> for PossiblyRedactedStateRoomEncryptedEventContent
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 PossiblyRedactedStateEventContent for PossiblyRedactedStateRoomEncryptedEventContent
impl PossiblyRedactedStateEventContent for PossiblyRedactedStateRoomEncryptedEventContent
Source§fn event_type(&self) -> StateEventType
fn event_type(&self) -> StateEventType
Get the event’s type, like
m.room.name
.Auto Trait Implementations§
impl Freeze for PossiblyRedactedStateRoomEncryptedEventContent
impl RefUnwindSafe for PossiblyRedactedStateRoomEncryptedEventContent
impl Send for PossiblyRedactedStateRoomEncryptedEventContent
impl Sync for PossiblyRedactedStateRoomEncryptedEventContent
impl Unpin for PossiblyRedactedStateRoomEncryptedEventContent
impl UnwindSafe for PossiblyRedactedStateRoomEncryptedEventContent
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