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
id: ID
body: M
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]
ID: Id + Clone + Debug + PartialEq + Serialize + Deserialize
fn clone(&self) -> Labelled<ID, M>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
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]
ID: Id + Clone + Debug + PartialEq + Serialize + Deserialize
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]
ID: Id + Clone + Debug + PartialEq + Serialize + Deserialize
fn eq(&self, __arg_0: &Labelled<ID, M>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Labelled<ID, M>) -> bool
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]
ID: Id + Clone + Debug + PartialEq + Serialize + Deserialize