Skip to main content

Message

Type Alias Message 

Source
pub type Message<P> = Message<Payload<P>, Map<P>>;

Aliased Type§

pub struct Message<P> {
    pub id: Id,
    pub ty: Type,
    pub ver: Version,
    pub token: Token,
    pub code: Code,
    pub opts: <P as PlatformTypes>::MessageOptions,
    pub payload: Payload<<P as PlatformTypes>::MessagePayload>,
}

Fields§

§id: Id

see [Id] for details

§ty: Type

see [Type] for details

§ver: Version

see [Version] for details

§token: Token

see [Token] for details

§code: Code

see [Code] for details

§opts: <P as PlatformTypes>::MessageOptions

see [opt::Opt] for details

§payload: Payload<<P as PlatformTypes>::MessagePayload>

see [Payload]

Trait Implementations§

Source§

impl<P: PlatformTypes> From<Req<P>> for Message<P>

Source§

fn from(req: Req<P>) -> Self

Converts to this type from the input type.
Source§

impl<P: PlatformTypes> From<Resp<P>> for Message<P>

Source§

fn from(rep: Resp<P>) -> Self

Converts to this type from the input type.