[][src]Struct urbit_http_api::chat::Message

pub struct Message { /* fields omitted */ }

A struct that represents a message that is to be sent to an Urbit chat. Message provides methods to build a message in chunks, thereby allowing you to add content which needs to be parsed, for example links or code.

Implementations

impl Message[src]

Methods for creating/building a Message

pub fn new() -> Message[src]

Create a new empty Message

pub fn add_text(&self, text: &str) -> Message[src]

Appends text to the end of the current message.

pub fn add_url(&self, url: &str) -> Message[src]

Appends a url to the end of the current message.

Trait Implementations

impl Clone for Message[src]

impl Debug for Message[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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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>,