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>§caption: Option<String>§blur_hash: Option<String>Trait Implementations§
Source§impl Debug for AttachmentSpec
impl Debug for AttachmentSpec
Source§impl Default for AttachmentSpec
impl Default for AttachmentSpec
Source§fn default() -> AttachmentSpec
fn default() -> AttachmentSpec
Returns the “default value” for a type. Read more
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
§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> 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>
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.