Struct libsignal_service::sender::AttachmentSpec
source · pub struct AttachmentSpec {
pub content_type: String,
pub length: usize,
pub file_name: Option<String>,
pub preview: Option<Vec<u8>>,
pub voice_note: Option<bool>,
pub borderless: Option<bool>,
pub width: Option<u32>,
pub height: Option<u32>,
pub caption: Option<String>,
pub blur_hash: Option<String>,
}
Expand description
Attachment specification to be used for uploading.
Loose equivalent of Java’s SignalServiceAttachmentStream
.
Fields§
§content_type: String
§length: usize
§file_name: Option<String>
§preview: Option<Vec<u8>>
§voice_note: Option<bool>
§borderless: Option<bool>
§width: Option<u32>
§height: Option<u32>
§blur_hash: Option<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AttachmentSpec
impl RefUnwindSafe for AttachmentSpec
impl Send for AttachmentSpec
impl Sync for AttachmentSpec
impl Unpin for AttachmentSpec
impl UnwindSafe for AttachmentSpec
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> 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