pub struct AttachmentConfig {
pub txn_id: Option<OwnedTransactionId>,
pub info: Option<AttachmentInfo>,
pub thumbnail: Option<Thumbnail>,
pub caption: Option<String>,
pub formatted_caption: Option<FormattedBody>,
pub mentions: Option<Mentions>,
pub in_reply_to: Option<OwnedEventId>,
}
Expand description
Configuration for sending an attachment.
Like matrix_sdk::attachment::AttachmentConfig
, but instead of the
reply
field, there’s only a in_reply_to
event id; it’s the timeline
deciding to fill the rest of the reply parameters.
Fields§
§txn_id: Option<OwnedTransactionId>
§info: Option<AttachmentInfo>
§thumbnail: Option<Thumbnail>
§caption: Option<String>
§formatted_caption: Option<FormattedBody>
§mentions: Option<Mentions>
§in_reply_to: Option<OwnedEventId>
Trait Implementations§
Source§impl Debug for AttachmentConfig
impl Debug for AttachmentConfig
Source§impl Default for AttachmentConfig
impl Default for AttachmentConfig
Source§fn default() -> AttachmentConfig
fn default() -> AttachmentConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AttachmentConfig
impl RefUnwindSafe for AttachmentConfig
impl Send for AttachmentConfig
impl Sync for AttachmentConfig
impl Unpin for AttachmentConfig
impl UnwindSafe for AttachmentConfig
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, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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