Struct sda_protocol::helpers::Signed
[−]
[src]
pub struct Signed<M> where M: Clone + Debug + PartialEq + Serialize + Deserialize {
pub signature: Signature,
pub signer: AgentId,
pub body: M,
}
Abstract object for signed message together with the signature and claimed signer.
Fields
signature: Signature
signer: AgentId
body: M
Trait Implementations
impl<M: Clone> Clone for Signed<M> where M: Clone + Debug + PartialEq + Serialize + Deserialize
[src]
fn clone(&self) -> Signed<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<M: Debug> Debug for Signed<M> where M: Clone + Debug + PartialEq + Serialize + Deserialize
[src]
impl<M: PartialEq> PartialEq for Signed<M> where M: Clone + Debug + PartialEq + Serialize + Deserialize
[src]
fn eq(&self, __arg_0: &Signed<M>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Signed<M>) -> bool
This method tests for !=
.
impl<M> Deref for Signed<M> where M: Clone + Debug + PartialEq + Serialize + Deserialize
[src]
type Target = M
The resulting type after dereferencing
fn deref(&self) -> &M
The method called to dereference a value
impl<ID, M> Identified for Signed<M> where M: Identified<I=ID> + Clone + Debug + PartialEq + Serialize + Deserialize,
ID: Id
[src]
ID: Id