[][src]Enum flubber_backend_proto::MessageContent

pub enum MessageContent {
    Bold(Box<MessageContent>),
    Concat(Vec<MessageContent>),
    Crossout(Box<MessageContent>),
    Emote(String),
    Italic(Box<MessageContent>),
    MessageLink(MessageID),
    RoomLink(RoomID),
    Text(String),
    UrlLink(String),
    Underline(Box<MessageContent>),
    UserLink(UserID),
}

The contents of a message.

Variants

Displays the enclosed content in bold.

Concatenates the enclosed content.

Crossout(Box<MessageContent>)

Displays the enclosed content crossed out.

Emote(String)

An emote.

TODO: How to do these? Just make them cached images?

Displays the enclosed content in italics.

A link to a message.

A link to a room.

Text(String)

Plain text.

A link to a resource by URL.

Underline(Box<MessageContent>)

Displays the enclosed content with an underline.

A link to a user.

Trait Implementations

impl Clone for MessageContent[src]

impl Eq for MessageContent[src]

impl PartialEq<MessageContent> for MessageContent[src]

impl Debug for MessageContent[src]

impl Hash for MessageContent[src]

impl StructuralPartialEq for MessageContent[src]

impl StructuralEq for MessageContent[src]

impl Serialize for MessageContent[src]

impl<'de> Deserialize<'de> for MessageContent[src]

impl Value for MessageContent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]