pub fn msgtype(&self) -> &str {
        match self {
            Self::Audio(_) => "m.audio",
            Self::Emote(_) => "m.emote",
            Self::File(_) => "m.file",
            Self::Image(_) => "m.image",
            Self::Location(_) => "m.location",
            Self::Notice(_) => "m.notice",
            Self::ServerNotice(_) => "m.server_notice",
            Self::Text(_) => "m.text",
            Self::Video(_) => "m.video",
            #[cfg(feature = "unstable-pre-spec")]
            Self::VerificationRequest(_) => "m.key.verification.request",
            Self::_Custom(c) => &c.msgtype,
        }
    }
/// Returns a reference to the `msgtype` string.
Returns a reference to the `msgtype` string.
Returns a reference to the ` msgtype ` string .
pub fn msgtype(&self) -> &str {
        match self {
            Self::Audio(_) => "m.audio",
            Self::Emote(_) => "m.emote",
            Self::File(_) => "m.file",
            Self::Image(_) => "m.image",
            Self::Location(_) => "m.location",
            Self::Notice(_) => "m.notice",
            Self::ServerNotice(_) => "m.server_notice",
            Self::Text(_) => "m.text",
            Self::Video(_) => "m.video",
            #[cfg(feature = "unstable-pre-spec")]
            Self::VerificationRequest(_) => "m.key.verification.request",
            Self::_Custom(c) => &c.msgtype,
        }
    }
pub fn msgtype ( & self ) -> & str { match self { Self :: Audio ( _ ) => " " , Self :: Emote ( _ ) => " " , Self :: File ( _ ) => " " , Self :: Image ( _ ) => " " , Self :: Location ( _ ) => " " , Self :: Notice ( _ ) => " " , Self :: ServerNotice ( _ ) => " " , Self :: Text ( _ ) => " " , Self :: Video ( _ ) => " " , # [ cfg ( feature " " ) ] Self :: VerificationRequest ( _ ) => " " , Self :: _Custom ( c ) => & c . msgtype , } }
Returns a reference to the `msgtype` string.
Returns a reference to the ` msgtype ` string .
&self