pub enum MegolmV1AesSha2WithheldContent {
BlackListed(Box<CommonWithheldCodeContent>),
Unverified(Box<CommonWithheldCodeContent>),
Unauthorised(Box<CommonWithheldCodeContent>),
Unavailable(Box<CommonWithheldCodeContent>),
NoOlm(Box<NoOlmWithheldContent>),
}
Expand description
Content for the m.room_key.withheld
event for the m.megolm.v1.aes-sha2
algorithm.
Variants§
BlackListed(Box<CommonWithheldCodeContent>)
The m.blacklisted
variant of the withheld code content.
Unverified(Box<CommonWithheldCodeContent>)
The m.unverified
variant of the withheld code content.
The m.unauthorised
variant of the withheld code content.
The m.unavailable
variant of the withheld code content.
NoOlm(Box<NoOlmWithheldContent>)
The m.no_olm
variant of the withheld code content.
Implementations§
Source§impl MegolmV1AesSha2WithheldContent
impl MegolmV1AesSha2WithheldContent
Sourcepub fn withheld_code(&self) -> WithheldCode
pub fn withheld_code(&self) -> WithheldCode
Get the withheld code for this content
Trait Implementations§
Source§impl Clone for MegolmV1AesSha2WithheldContent
impl Clone for MegolmV1AesSha2WithheldContent
Source§fn clone(&self) -> MegolmV1AesSha2WithheldContent
fn clone(&self) -> MegolmV1AesSha2WithheldContent
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for MegolmV1AesSha2WithheldContent
impl RefUnwindSafe for MegolmV1AesSha2WithheldContent
impl Send for MegolmV1AesSha2WithheldContent
impl Sync for MegolmV1AesSha2WithheldContent
impl Unpin for MegolmV1AesSha2WithheldContent
impl UnwindSafe for MegolmV1AesSha2WithheldContent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more