pub struct GroupSendOptions {
pub priority: Option<MessagePriority>,
pub reply_to_msg: Option<String>,
pub content_type: Option<ContentType>,
pub media_metadata: Option<MediaMetadata>,
}Expand description
Options for OfflineProtocol::send_group_message_with: priority and
reply threading (as on send_group_message), plus the rich media fields.
The rich fields (content_type, media_metadata — including any
cloud-media encryption_key/iv secrets) only ever travel inside the
MLS-sealed __RICH_V1__ body of the group ciphertext, and only when
every other group member advertised rich_versions support (one
ciphertext serves the whole group, so one legacy or unknown-capability
member forces the drop). Otherwise they are silently dropped — never
sent cleartext — and the message degrades to what send_group_message
sends.
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 rendering hint (text, image, video, …), delivered
sealed-only. Must not be ContentType::FileChunk.
media_metadata: Option<MediaMetadata>Rich media metadata (cloud attachments — including the
encryption_key/iv secrets), delivered sealed-only.
Trait Implementations§
Source§impl Clone for GroupSendOptions
impl Clone for GroupSendOptions
Source§fn clone(&self) -> GroupSendOptions
fn clone(&self) -> GroupSendOptions
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 GroupSendOptions
impl Debug for GroupSendOptions
Source§impl Default for GroupSendOptions
impl Default for GroupSendOptions
Source§fn default() -> GroupSendOptions
fn default() -> GroupSendOptions
Auto Trait Implementations§
impl Freeze for GroupSendOptions
impl RefUnwindSafe for GroupSendOptions
impl Send for GroupSendOptions
impl Sync for GroupSendOptions
impl Unpin for GroupSendOptions
impl UnsafeUnpin for GroupSendOptions
impl UnwindSafe for GroupSendOptions
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