Struct sda_protocol::helpers::Labelled [] [src]

pub struct Labelled<ID, M> where M: Clone + Debug + PartialEq + Serialize + Deserialize,
        ID: Id + Clone + Debug + PartialEq + Serialize + Deserialize
{ pub id: ID, pub body: M, }

Abstract object for messages labelled by some form of identifier.

Fields

Trait Implementations

impl<ID: Clone, M: Clone> Clone for Labelled<ID, M> where M: Clone + Debug + PartialEq + Serialize + Deserialize,
        ID: Id + Clone + Debug + PartialEq + Serialize + Deserialize
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<ID: Debug, M: Debug> Debug for Labelled<ID, M> where M: Clone + Debug + PartialEq + Serialize + Deserialize,
        ID: Id + Clone + Debug + PartialEq + Serialize + Deserialize
[src]

Formats the value using the given formatter.

impl<ID: PartialEq, M: PartialEq> PartialEq for Labelled<ID, M> where M: Clone + Debug + PartialEq + Serialize + Deserialize,
        ID: Id + Clone + Debug + PartialEq + Serialize + Deserialize
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<ID, M> Identified for Labelled<ID, M> where M: Clone + Debug + PartialEq + Serialize + Deserialize,
        ID: Id + Clone + Debug + PartialEq + Serialize + Deserialize
[src]