pub struct SendMessageOptions {
pub priority: Option<MessagePriority>,
pub reply_to_msg: Option<String>,
pub content_type: Option<ContentType>,
pub reply_context: Option<ReplyContext>,
pub media_metadata: Option<MediaMetadata>,
pub forward_info: Option<ForwardInfo>,
pub via_transport: Option<TransportType>,
}Expand description
Options for OfflineProtocol::send_message_with: priority and reply
threading (as on send_message), plus the rich fields introduced with
the sealed rich payload.
The rich fields (reply_context, media_metadata, forward_info) only
ever travel inside the MLS-sealed __RICH_V1__ body, and only toward
recipients whose key package advertised rich_versions support. Toward
anyone else they are silently dropped — never sent cleartext — so the
message degrades to plain text with reply_to_msg threading intact.
Fields§
§priority: Option<MessagePriority>Message priority (defaults to Medium).
reply_to_msg: Option<String>ID of the message this is replying to.
content_type: Option<ContentType>Content type stamped on the outer message (defaults to Text). A
coarse rendering hint — the actual content stays MLS-sealed. Toward
a recipient that advertised the sealed rich payload, a copy travels
inside the sealed body — whenever extras seal, or the hint itself is
non-Text — and the receiver treats that copy as authoritative, so a
relay cannot rewrite the hint. Must not be
ContentType::FileChunk (an internal transport content type; the
receiver would route the message into its file-transfer manager and
drop it) — rejected as InvalidArgument.
reply_context: Option<ReplyContext>Quoted-reply context, delivered sealed-only.
media_metadata: Option<MediaMetadata>Rich media metadata (cloud attachments, stickers — including any
encryption_key/iv secrets), delivered sealed-only.
forward_info: Option<ForwardInfo>Forward attribution, delivered sealed-only.
via_transport: Option<TransportType>Send via this specific transport (bypassing DORS selection), like
send_message_via_transport.
Trait Implementations§
Source§impl Clone for SendMessageOptions
impl Clone for SendMessageOptions
Source§fn clone(&self) -> SendMessageOptions
fn clone(&self) -> SendMessageOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SendMessageOptions
impl Debug for SendMessageOptions
Source§impl Default for SendMessageOptions
impl Default for SendMessageOptions
Source§fn default() -> SendMessageOptions
fn default() -> SendMessageOptions
Auto Trait Implementations§
impl Freeze for SendMessageOptions
impl RefUnwindSafe for SendMessageOptions
impl Send for SendMessageOptions
impl Sync for SendMessageOptions
impl Unpin for SendMessageOptions
impl UnsafeUnpin for SendMessageOptions
impl UnwindSafe for SendMessageOptions
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§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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> ⓘ
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