#[non_exhaustive]pub struct StateRoomEncryptedEventContent {
    pub scheme: EncryptedEventScheme,
}Available on crate feature 
events only.Expand description
The content of an m.room.encrypted state event.
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: EncryptedEventSchemeAlgorithm-specific fields.
Trait Implementations§
Source§impl Clone for StateRoomEncryptedEventContent
 
impl Clone for StateRoomEncryptedEventContent
Source§fn clone(&self) -> StateRoomEncryptedEventContent
 
fn clone(&self) -> StateRoomEncryptedEventContent
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<'de> Deserialize<'de> for StateRoomEncryptedEventContent
 
impl<'de> Deserialize<'de> for StateRoomEncryptedEventContent
Source§fn deserialize<__D>(
    __deserializer: __D,
) -> Result<StateRoomEncryptedEventContent, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<StateRoomEncryptedEventContent, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<StateRoomEncryptedEventContent> for AnyStateEventContent
 
impl From<StateRoomEncryptedEventContent> for AnyStateEventContent
Source§fn from(c: StateRoomEncryptedEventContent) -> AnyStateEventContent
 
fn from(c: StateRoomEncryptedEventContent) -> AnyStateEventContent
Converts to this type from the input type.
Source§impl RedactContent for StateRoomEncryptedEventContent
 
impl RedactContent for StateRoomEncryptedEventContent
Source§type Redacted = RedactedStateRoomEncryptedEventContent
 
type Redacted = RedactedStateRoomEncryptedEventContent
The redacted form of the event’s content.
Source§fn redact(
    self,
    _rules: &RedactionRules,
) -> RedactedStateRoomEncryptedEventContent
 
fn redact( self, _rules: &RedactionRules, ) -> RedactedStateRoomEncryptedEventContent
Transform 
self into a redacted form (removing most or all fields) according to the spec. Read moreSource§impl Serialize for StateRoomEncryptedEventContent
 
impl Serialize for StateRoomEncryptedEventContent
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
Source§impl StateEventContent for StateRoomEncryptedEventContent
 
impl StateEventContent for StateRoomEncryptedEventContent
Source§fn event_type(&self) -> StateEventType
 
fn event_type(&self) -> StateEventType
Get the event’s type, like 
m.room.name.Source§impl StaticStateEventContent for StateRoomEncryptedEventContent
 
impl StaticStateEventContent for StateRoomEncryptedEventContent
Source§type PossiblyRedacted = PossiblyRedactedStateRoomEncryptedEventContent
 
type PossiblyRedacted = PossiblyRedactedStateRoomEncryptedEventContent
The possibly redacted form of the event’s content.
Source§type Unsigned = StateUnsigned<<StateRoomEncryptedEventContent as StaticStateEventContent>::PossiblyRedacted>
 
type Unsigned = StateUnsigned<<StateRoomEncryptedEventContent as StaticStateEventContent>::PossiblyRedacted>
The type of the event’s 
unsigned field.impl JsonCastable<AnyStateEventContent> for StateRoomEncryptedEventContent
impl JsonCastable<Map<String, Value>> for StateRoomEncryptedEventContent
impl JsonCastable<RedactedStateRoomEncryptedEventContent> for StateRoomEncryptedEventContent
Auto Trait Implementations§
impl Freeze for StateRoomEncryptedEventContent
impl RefUnwindSafe for StateRoomEncryptedEventContent
impl Send for StateRoomEncryptedEventContent
impl Sync for StateRoomEncryptedEventContent
impl Unpin for StateRoomEncryptedEventContent
impl UnwindSafe for StateRoomEncryptedEventContent
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