pub struct TextMessage<'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 body: &'a str,
}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]>§body: &'a strTrait Implementations§
Source§impl<'a> Clone for TextMessage<'a>
impl<'a> Clone for TextMessage<'a>
Source§fn clone(&self) -> TextMessage<'a>
fn clone(&self) -> TextMessage<'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 TextMessage<'a>
impl<'a> Debug for TextMessage<'a>
Source§impl From<TextMessage<'_>> for OwnedTextMessage
impl From<TextMessage<'_>> for OwnedTextMessage
Source§fn from(value: TextMessage<'_>) -> Self
fn from(value: TextMessage<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for TextMessage<'a>
impl<'a> PartialEq for TextMessage<'a>
impl<'a> Copy for TextMessage<'a>
impl<'a> Eq for TextMessage<'a>
impl<'a> StructuralPartialEq for TextMessage<'a>
Auto Trait Implementations§
impl<'a> Freeze for TextMessage<'a>
impl<'a> RefUnwindSafe for TextMessage<'a>
impl<'a> Send for TextMessage<'a>
impl<'a> Sync for TextMessage<'a>
impl<'a> Unpin for TextMessage<'a>
impl<'a> UnwindSafe for TextMessage<'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)