Struct urbit_chatbot_framework::AuthoredMessage[][src]

pub struct AuthoredMessage {
    pub author: String,
    pub contents: NodeContents,
    pub time_sent: String,
    pub index: String,
}

A Message with the author @p, post time and index also included

Fields

author: Stringcontents: NodeContentstime_sent: Stringindex: String

Implementations

impl AuthoredMessage[src]

pub fn new(
    author: &str,
    contents: &NodeContents,
    time_sent: &str,
    index: &str
) -> AuthoredMessage
[src]

Create a new AuthoredMessage

pub fn from_node(node: &Node) -> AuthoredMessage[src]

Parses a Node into Self

pub fn to_formatted_string(&self) -> String[src]

Converts self into a human readable formatted string which includes the author, date, and node contents.

Trait Implementations

impl Clone for AuthoredMessage[src]

impl Debug for AuthoredMessage[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>,