[][src]Struct alice_types::response::Message

pub struct Message<SessionState = Value> {
    pub response: Response<SessionState>,
    pub session: Option<Session>,
    // some fields omitted
}

Fields

response: Response<SessionState>session: Option<Session>

Implementations

impl<SessionState> Message<SessionState>[src]

pub fn new() -> Self[src]

pub fn from_request(req: Request<SessionState>) -> Self[src]

pub fn with_response(self, resp: Response<SessionState>) -> Self[src]

pub fn with_session(self, session: Session) -> Self[src]

Trait Implementations

impl<SessionState> Serialize for Message<SessionState> where
    SessionState: Serialize
[src]

Auto Trait Implementations

impl<SessionState> RefUnwindSafe for Message<SessionState> where
    SessionState: RefUnwindSafe
[src]

impl<SessionState> Send for Message<SessionState> where
    SessionState: Send
[src]

impl<SessionState> Sync for Message<SessionState> where
    SessionState: Sync
[src]

impl<SessionState> Unpin for Message<SessionState> where
    SessionState: Unpin
[src]

impl<SessionState> UnwindSafe for Message<SessionState> where
    SessionState: UnwindSafe
[src]

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, U> Into<U> for T where
    U: From<T>, 
[src]

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.