Struct libsignal_service::proto::sync_message::Sent
source · pub struct Sent {
pub destination_e164: Option<String>,
pub destination_service_id: Option<String>,
pub timestamp: Option<u64>,
pub message: Option<DataMessage>,
pub expiration_start_timestamp: Option<u64>,
pub unidentified_status: Vec<UnidentifiedDeliveryStatus>,
pub is_recipient_update: Option<bool>,
pub story_message: Option<StoryMessage>,
pub story_message_recipients: Vec<StoryMessageRecipient>,
pub edit_message: Option<EditMessage>,
}
Fields§
§destination_e164: Option<String>
§destination_service_id: Option<String>
§timestamp: Option<u64>
§message: Option<DataMessage>
§expiration_start_timestamp: Option<u64>
§unidentified_status: Vec<UnidentifiedDeliveryStatus>
§is_recipient_update: Option<bool>
§story_message: Option<StoryMessage>
§story_message_recipients: Vec<StoryMessageRecipient>
§edit_message: Option<EditMessage>
Implementations§
source§impl Sent
impl Sent
sourcepub fn destination_e164(&self) -> &str
pub fn destination_e164(&self) -> &str
Returns the value of destination_e164
, or the default value if destination_e164
is unset.
sourcepub fn timestamp(&self) -> u64
pub fn timestamp(&self) -> u64
Returns the value of timestamp
, or the default value if timestamp
is unset.
sourcepub fn expiration_start_timestamp(&self) -> u64
pub fn expiration_start_timestamp(&self) -> u64
Returns the value of expiration_start_timestamp
, or the default value if expiration_start_timestamp
is unset.
sourcepub fn is_recipient_update(&self) -> bool
pub fn is_recipient_update(&self) -> bool
Returns the value of is_recipient_update
, or the default value if is_recipient_update
is unset.
sourcepub fn destination_service_id(&self) -> &str
pub fn destination_service_id(&self) -> &str
Returns the value of destination_service_id
, or the default value if destination_service_id
is unset.
Trait Implementations§
source§impl Message for Sent
impl Message for Sent
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 Sent
impl PartialEq for Sent
impl StructuralPartialEq for Sent
Auto Trait Implementations§
impl Freeze for Sent
impl RefUnwindSafe for Sent
impl Send for Sent
impl Sync for Sent
impl Unpin for Sent
impl UnwindSafe for Sent
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.