Struct ic_agent::Certificate
source · [−]pub struct Certificate<'a> {
pub tree: HashTree<'a>,
pub signature: Vec<u8>,
pub delegation: Option<Delegation>,
}
Expand description
A Certificate
as defined in https://smartcontracts.org/docs/interface-spec/index.html#_certificate
Fields
tree: HashTree<'a>
The hash tree.
signature: Vec<u8>
The signature of the root hash in tree
.
delegation: Option<Delegation>
A delegation from the root key to the key used to sign signature
, if one exists.
Trait Implementations
sourceimpl<'a> Debug for Certificate<'a>
impl<'a> Debug for Certificate<'a>
sourceimpl<'de, 'a> Deserialize<'de> for Certificate<'a>
impl<'de, 'a> Deserialize<'de> for Certificate<'a>
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'a> PartialEq<Certificate<'a>> for Certificate<'a>
impl<'a> PartialEq<Certificate<'a>> for Certificate<'a>
sourcefn eq(&self, other: &Certificate<'a>) -> bool
fn eq(&self, other: &Certificate<'a>) -> bool
impl<'a> Eq for Certificate<'a>
impl<'a> StructuralEq for Certificate<'a>
impl<'a> StructuralPartialEq for Certificate<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Certificate<'a>
impl<'a> Send for Certificate<'a>
impl<'a> Sync for Certificate<'a>
impl<'a> Unpin for Certificate<'a>
impl<'a> UnwindSafe for Certificate<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.