Enum libsignal_service::content::ContentBody
source · pub enum ContentBody {
NullMessage(NullMessage),
DataMessage(DataMessage),
SynchronizeMessage(SyncMessage),
CallMessage(CallMessage),
ReceiptMessage(ReceiptMessage),
TypingMessage(TypingMessage),
StoryMessage(StoryMessage),
PniSignatureMessage(PniSignatureMessage),
EditMessage(EditMessage),
}
Variants§
NullMessage(NullMessage)
DataMessage(DataMessage)
SynchronizeMessage(SyncMessage)
CallMessage(CallMessage)
ReceiptMessage(ReceiptMessage)
TypingMessage(TypingMessage)
StoryMessage(StoryMessage)
PniSignatureMessage(PniSignatureMessage)
EditMessage(EditMessage)
Implementations§
source§impl ContentBody
impl ContentBody
pub fn into_proto(self) -> Content
Trait Implementations§
source§impl Clone for ContentBody
impl Clone for ContentBody
source§fn clone(&self) -> ContentBody
fn clone(&self) -> ContentBody
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 moresource§impl Debug for ContentBody
impl Debug for ContentBody
source§impl From<CallMessage> for ContentBody
impl From<CallMessage> for ContentBody
source§fn from(inner: CallMessage) -> ContentBody
fn from(inner: CallMessage) -> ContentBody
Converts to this type from the input type.
source§impl From<DataMessage> for ContentBody
impl From<DataMessage> for ContentBody
source§fn from(inner: DataMessage) -> ContentBody
fn from(inner: DataMessage) -> ContentBody
Converts to this type from the input type.
source§impl From<EditMessage> for ContentBody
impl From<EditMessage> for ContentBody
source§fn from(inner: EditMessage) -> ContentBody
fn from(inner: EditMessage) -> ContentBody
Converts to this type from the input type.
source§impl From<NullMessage> for ContentBody
impl From<NullMessage> for ContentBody
source§fn from(inner: NullMessage) -> ContentBody
fn from(inner: NullMessage) -> ContentBody
Converts to this type from the input type.
source§impl From<PniSignatureMessage> for ContentBody
impl From<PniSignatureMessage> for ContentBody
source§fn from(inner: PniSignatureMessage) -> ContentBody
fn from(inner: PniSignatureMessage) -> ContentBody
Converts to this type from the input type.
source§impl From<ReceiptMessage> for ContentBody
impl From<ReceiptMessage> for ContentBody
source§fn from(inner: ReceiptMessage) -> ContentBody
fn from(inner: ReceiptMessage) -> ContentBody
Converts to this type from the input type.
source§impl From<StoryMessage> for ContentBody
impl From<StoryMessage> for ContentBody
source§fn from(inner: StoryMessage) -> ContentBody
fn from(inner: StoryMessage) -> ContentBody
Converts to this type from the input type.
source§impl From<SyncMessage> for ContentBody
impl From<SyncMessage> for ContentBody
source§fn from(inner: SyncMessage) -> ContentBody
fn from(inner: SyncMessage) -> ContentBody
Converts to this type from the input type.
source§impl From<TypingMessage> for ContentBody
impl From<TypingMessage> for ContentBody
source§fn from(inner: TypingMessage) -> ContentBody
fn from(inner: TypingMessage) -> ContentBody
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContentBody
impl RefUnwindSafe for ContentBody
impl Send for ContentBody
impl Sync for ContentBody
impl Unpin for ContentBody
impl UnwindSafe for ContentBody
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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