[][src]Struct ruma_events::room::message::ServerNoticeMessageEventContent

pub struct ServerNoticeMessageEventContent {
    pub body: String,
    pub server_notice_type: ServerNoticeType,
    pub admin_contact: Option<String>,
    pub limit_type: Option<LimitType>,
}

The payload for a server notice message.

Fields

body: String

A human-readable description of the notice.

server_notice_type: ServerNoticeType

The type of notice being represented.

admin_contact: Option<String>

A URI giving a contact method for the server administrator.

Required if the notice type is m.server_notice.usage_limit_reached.

limit_type: Option<LimitType>

The kind of usage limit the server has exceeded.

Required if the notice type is m.server_notice.usage_limit_reached.

Trait Implementations

impl Clone for ServerNoticeMessageEventContent[src]

impl Debug for ServerNoticeMessageEventContent[src]

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

impl PartialEq<ServerNoticeMessageEventContent> for ServerNoticeMessageEventContent[src]

impl Serialize for ServerNoticeMessageEventContent[src]

impl StructuralPartialEq for ServerNoticeMessageEventContent[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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 = Infallible

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<V, T> VZip<V> for T where
    V: MultiLane<T>,