pub fn reply_with_mention<B>(&self, body: B) -> OutgoingMessage
    where
        B: Into<String>,
    {
        let target = match self.source {
            Source::User(ref user) => Target::User(user.clone()),
            Source::UserInRoom(ref user, ref room) => {
                Target::UserInRoom(user.clone(), room.clone())
            }
        };

        OutgoingMessage::new(target, body)
    }
/// Creates an `OutgoingMessage` targeting the source of the incoming message and, if the
/// incoming message came from a room, prefixing the reply with the user's name.
Creates an `OutgoingMessage` targeting the source of the incoming message and, if the
incoming message came from a room, prefixing the reply with the user's name.
Creates an ` OutgoingMessage ` targeting the source of the incoming message and if the incoming message came from a room prefixing the reply with the user ' s name .
pub fn reply_with_mention<B>(&self, body: B) -> OutgoingMessage
    where
        B: Into<String>,
    {
        let target = match self.source {
            Source::User(ref user) => Target::User(user.clone()),
            Source::UserInRoom(ref user, ref room) => {
                Target::UserInRoom(user.clone(), room.clone())
            }
        };
        OutgoingMessage::new(target, body)
    }
pub fn reply_with_mention < B > ( & self , body : B ) -> OutgoingMessage where B : Into < String > , { let target = match self . source { Source :: User ( ref user ) => Target :: User ( user . clone ( ) ) , Source :: UserInRoom ( ref user , ref room ) => { Target :: UserInRoom ( user . clone ( ) , room . clone ( ) ) } } ; OutgoingMessage :: new ( target , body ) }
Creates an `OutgoingMessage` targeting the source of the incoming message and, if the
incoming message came from a room, prefixing the reply with the user's name.
Creates an ` OutgoingMessage ` targeting the source of the incoming message and if the incoming message came from a room prefixing the reply with the user ' s name .
&self
body
B
&self
body
B