Struct libsignal_service::proto::AttachmentPointer
source · pub struct AttachmentPointer {Show 17 fields
pub content_type: Option<String>,
pub key: Option<Vec<u8>>,
pub size: Option<u32>,
pub thumbnail: Option<Vec<u8>>,
pub digest: Option<Vec<u8>>,
pub incremental_mac: Option<Vec<u8>>,
pub incremental_mac_chunk_size: Option<u32>,
pub file_name: Option<String>,
pub flags: Option<u32>,
pub width: Option<u32>,
pub height: Option<u32>,
pub caption: Option<String>,
pub blur_hash: Option<String>,
pub upload_timestamp: Option<u64>,
pub cdn_number: Option<u32>,
pub uuid: Option<Vec<u8>>,
pub attachment_identifier: Option<AttachmentIdentifier>,
}
Fields§
§content_type: Option<String>
§key: Option<Vec<u8>>
§size: Option<u32>
§thumbnail: Option<Vec<u8>>
§digest: Option<Vec<u8>>
§incremental_mac: Option<Vec<u8>>
§incremental_mac_chunk_size: Option<u32>
§file_name: Option<String>
§flags: Option<u32>
§width: Option<u32>
§height: Option<u32>
§blur_hash: Option<String>
§upload_timestamp: Option<u64>
§cdn_number: Option<u32>
§uuid: Option<Vec<u8>>
Next ID: 21
attachment_identifier: Option<AttachmentIdentifier>
Implementations§
source§impl AttachmentPointer
impl AttachmentPointer
sourcepub fn content_type(&self) -> &str
pub fn content_type(&self) -> &str
Returns the value of content_type
, or the default value if content_type
is unset.
sourcepub fn thumbnail(&self) -> &[u8] ⓘ
pub fn thumbnail(&self) -> &[u8] ⓘ
Returns the value of thumbnail
, or the default value if thumbnail
is unset.
sourcepub fn digest(&self) -> &[u8] ⓘ
pub fn digest(&self) -> &[u8] ⓘ
Returns the value of digest
, or the default value if digest
is unset.
sourcepub fn file_name(&self) -> &str
pub fn file_name(&self) -> &str
Returns the value of file_name
, or the default value if file_name
is unset.
sourcepub fn height(&self) -> u32
pub fn height(&self) -> u32
Returns the value of height
, or the default value if height
is unset.
Returns the value of caption
, or the default value if caption
is unset.
sourcepub fn blur_hash(&self) -> &str
pub fn blur_hash(&self) -> &str
Returns the value of blur_hash
, or the default value if blur_hash
is unset.
sourcepub fn upload_timestamp(&self) -> u64
pub fn upload_timestamp(&self) -> u64
Returns the value of upload_timestamp
, or the default value if upload_timestamp
is unset.
sourcepub fn cdn_number(&self) -> u32
pub fn cdn_number(&self) -> u32
Returns the value of cdn_number
, or the default value if cdn_number
is unset.
sourcepub fn incremental_mac_chunk_size(&self) -> u32
pub fn incremental_mac_chunk_size(&self) -> u32
Returns the value of incremental_mac_chunk_size
, or the default value if incremental_mac_chunk_size
is unset.
sourcepub fn incremental_mac(&self) -> &[u8] ⓘ
pub fn incremental_mac(&self) -> &[u8] ⓘ
Returns the value of incremental_mac
, or the default value if incremental_mac
is unset.
Trait Implementations§
source§impl Clone for AttachmentPointer
impl Clone for AttachmentPointer
source§fn clone(&self) -> AttachmentPointer
fn clone(&self) -> AttachmentPointer
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttachmentPointer
impl Debug for AttachmentPointer
source§impl Default for AttachmentPointer
impl Default for AttachmentPointer
source§impl Message for AttachmentPointer
impl Message for AttachmentPointer
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self
.source§impl PartialEq for AttachmentPointer
impl PartialEq for AttachmentPointer
source§fn eq(&self, other: &AttachmentPointer) -> bool
fn eq(&self, other: &AttachmentPointer) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AttachmentPointer
Auto Trait Implementations§
impl Freeze for AttachmentPointer
impl RefUnwindSafe for AttachmentPointer
impl Send for AttachmentPointer
impl Sync for AttachmentPointer
impl Unpin for AttachmentPointer
impl UnwindSafe for AttachmentPointer
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
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)
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>
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>
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