#[non_exhaustive]pub struct PossiblyRedactedStateRoomEncryptedEventContent {
pub scheme: Option<EncryptedEventScheme>,
}Available on crate features
events and unstable-msc4362 only.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<PossiblyRedactedStateRoomEncryptedEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PossiblyRedactedStateRoomEncryptedEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PossiblyRedactedStateRoomEncryptedEventContent> for AnyPossiblyRedactedStateEventContent
impl From<PossiblyRedactedStateRoomEncryptedEventContent> for AnyPossiblyRedactedStateEventContent
Source§fn from(
c: PossiblyRedactedStateRoomEncryptedEventContent,
) -> AnyPossiblyRedactedStateEventContent
fn from( c: PossiblyRedactedStateRoomEncryptedEventContent, ) -> AnyPossiblyRedactedStateEventContent
Converts to this type from the input type.
Source§impl From<RedactedStateRoomEncryptedEventContent> for PossiblyRedactedStateRoomEncryptedEventContent
impl From<RedactedStateRoomEncryptedEventContent> for PossiblyRedactedStateRoomEncryptedEventContent
Source§fn from(
_value: RedactedStateRoomEncryptedEventContent,
) -> PossiblyRedactedStateRoomEncryptedEventContent
fn from( _value: RedactedStateRoomEncryptedEventContent, ) -> PossiblyRedactedStateRoomEncryptedEventContent
Converts to this type from the input type.
Source§impl From<StateRoomEncryptedEventContent> for PossiblyRedactedStateRoomEncryptedEventContent
impl From<StateRoomEncryptedEventContent> for PossiblyRedactedStateRoomEncryptedEventContent
Source§fn from(
value: StateRoomEncryptedEventContent,
) -> PossiblyRedactedStateRoomEncryptedEventContent
fn from( value: StateRoomEncryptedEventContent, ) -> PossiblyRedactedStateRoomEncryptedEventContent
Converts to this type from the input type.
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.Source§impl RedactContent for PossiblyRedactedStateRoomEncryptedEventContent
impl RedactContent for PossiblyRedactedStateRoomEncryptedEventContent
Source§type Redacted = PossiblyRedactedStateRoomEncryptedEventContent
type Redacted = PossiblyRedactedStateRoomEncryptedEventContent
The redacted form of the event’s content.
Source§fn redact(
self,
_rules: &RedactionRules,
) -> <PossiblyRedactedStateRoomEncryptedEventContent as RedactContent>::Redacted
fn redact( self, _rules: &RedactionRules, ) -> <PossiblyRedactedStateRoomEncryptedEventContent as RedactContent>::Redacted
Transform
self into a redacted form (removing most or all fields) according to the spec. Read moreSource§impl Serialize for PossiblyRedactedStateRoomEncryptedEventContent
impl Serialize for PossiblyRedactedStateRoomEncryptedEventContent
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
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedStateRoomEncryptedEventContent
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