pub struct ContentMessage<'a> {
pub message_type: MessageType,
pub sender_handle: Option<&'a str>,
pub sequence: Option<MessageSequence>,
pub sequence_reset: bool,
pub regarding: Option<Regarding>,
pub editing: Option<u8>,
pub bg_color: Option<[u8; 3]>,
pub text_color: Option<[u8; 3]>,
pub extensions: ExtensionOptions<'a>,
pub body: &'a [u8],
}Expand description
A displayable content message after contextual validation.
Fields§
§message_type: MessageType§sender_handle: Option<&'a str>§sequence: Option<MessageSequence>§sequence_reset: bool§regarding: Option<Regarding>§editing: Option<u8>§bg_color: Option<[u8; 3]>§text_color: Option<[u8; 3]>§extensions: ExtensionOptions<'a>§body: &'a [u8]Raw body bytes; guaranteed UTF-8 when the message is unfragmented.
Trait Implementations§
Source§impl<'a> Clone for ContentMessage<'a>
impl<'a> Clone for ContentMessage<'a>
Source§fn clone(&self) -> ContentMessage<'a>
fn clone(&self) -> ContentMessage<'a>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ContentMessage<'a>
impl<'a> Debug for ContentMessage<'a>
Source§impl<'a> PartialEq for ContentMessage<'a>
impl<'a> PartialEq for ContentMessage<'a>
impl<'a> Copy for ContentMessage<'a>
impl<'a> Eq for ContentMessage<'a>
impl<'a> StructuralPartialEq for ContentMessage<'a>
Auto Trait Implementations§
impl<'a> Freeze for ContentMessage<'a>
impl<'a> RefUnwindSafe for ContentMessage<'a>
impl<'a> Send for ContentMessage<'a>
impl<'a> Sync for ContentMessage<'a>
impl<'a> Unpin for ContentMessage<'a>
impl<'a> UnwindSafe for ContentMessage<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)