pub enum DecodedContent {
Text(TextContentV1),
Action(ActionContentV1),
Reply(ReplyContentV1),
Unknown {
content_type: u32,
content_version: u32,
},
}Expand description
Decoded message content for client-side processing
Variants§
Text(TextContentV1)
Text message
Action(ActionContentV1)
Action on another message
Reply(ReplyContentV1)
Reply to another message
Unknown
Unknown content type - preserved for round-tripping but displayed as placeholder
Implementations§
Source§impl DecodedContent
impl DecodedContent
Sourcepub fn to_display_string(&self) -> String
pub fn to_display_string(&self) -> String
Get a display string for this content
Trait Implementations§
Source§impl Clone for DecodedContent
impl Clone for DecodedContent
Source§fn clone(&self) -> DecodedContent
fn clone(&self) -> DecodedContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecodedContent
impl Debug for DecodedContent
Source§impl PartialEq for DecodedContent
impl PartialEq for DecodedContent
impl StructuralPartialEq for DecodedContent
Auto Trait Implementations§
impl Freeze for DecodedContent
impl RefUnwindSafe for DecodedContent
impl Send for DecodedContent
impl Sync for DecodedContent
impl Unpin for DecodedContent
impl UnwindSafe for DecodedContent
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