Struct libsignal_service::proto::SyncMessage
source · pub struct SyncMessage {Show 20 fields
pub sent: Option<Sent>,
pub contacts: Option<Contacts>,
pub request: Option<Request>,
pub read: Vec<Read>,
pub blocked: Option<Blocked>,
pub verified: Option<Verified>,
pub configuration: Option<Configuration>,
pub padding: Option<Vec<u8>>,
pub sticker_pack_operation: Vec<StickerPackOperation>,
pub view_once_open: Option<ViewOnceOpen>,
pub fetch_latest: Option<FetchLatest>,
pub keys: Option<Keys>,
pub message_request_response: Option<MessageRequestResponse>,
pub outgoing_payment: Option<OutgoingPayment>,
pub viewed: Vec<Viewed>,
pub pni_change_number: Option<PniChangeNumber>,
pub call_event: Option<CallEvent>,
pub call_link_update: Option<CallLinkUpdate>,
pub call_log_event: Option<CallLogEvent>,
pub delete_for_me: Option<DeleteForMe>,
}
Fields§
§sent: Option<Sent>
§contacts: Option<Contacts>
§request: Option<Request>
§read: Vec<Read>
§blocked: Option<Blocked>
§verified: Option<Verified>
§configuration: Option<Configuration>
§padding: Option<Vec<u8>>
§sticker_pack_operation: Vec<StickerPackOperation>
§view_once_open: Option<ViewOnceOpen>
§fetch_latest: Option<FetchLatest>
§keys: Option<Keys>
§message_request_response: Option<MessageRequestResponse>
§outgoing_payment: Option<OutgoingPayment>
§viewed: Vec<Viewed>
§pni_change_number: Option<PniChangeNumber>
§call_event: Option<CallEvent>
§call_link_update: Option<CallLinkUpdate>
§call_log_event: Option<CallLogEvent>
§delete_for_me: Option<DeleteForMe>
Implementations§
source§impl SyncMessage
impl SyncMessage
source§impl SyncMessage
impl SyncMessage
pub fn with_padding() -> Self
Trait Implementations§
source§impl Clone for SyncMessage
impl Clone for SyncMessage
source§fn clone(&self) -> SyncMessage
fn clone(&self) -> SyncMessage
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 SyncMessage
impl Debug for SyncMessage
source§impl Default for SyncMessage
impl Default for SyncMessage
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 Message for SyncMessage
impl Message for SyncMessage
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for SyncMessage
impl PartialEq for SyncMessage
source§fn eq(&self, other: &SyncMessage) -> bool
fn eq(&self, other: &SyncMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SyncMessage
Auto Trait Implementations§
impl Freeze for SyncMessage
impl RefUnwindSafe for SyncMessage
impl Send for SyncMessage
impl Sync for SyncMessage
impl Unpin for SyncMessage
impl UnwindSafe for SyncMessage
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§impl<T> PartialDefault for Twhere
T: Default,
impl<T> PartialDefault for Twhere
T: Default,
§fn partial_default() -> T
fn partial_default() -> T
Returns a value that can be safely dropped or assigned over.