pub struct Certificate<Storage: AsRef<[u8]>> {
pub tree: HashTree<Storage>,
pub signature: Storage,
pub delegation: Option<Delegation<Storage>>,
}
Expand description
A Certificate
as defined in https://internetcomputer.org/docs/current/references/ic-interface-spec/#certificate
Fields§
§tree: HashTree<Storage>
The hash tree.
signature: Storage
The signature of the root hash in tree
.
delegation: Option<Delegation<Storage>>
A delegation from the root key to the key used to sign signature
, if one exists.
Trait Implementations§
source§impl<Storage: Clone + AsRef<[u8]>> Clone for Certificate<Storage>
impl<Storage: Clone + AsRef<[u8]>> Clone for Certificate<Storage>
source§fn clone(&self) -> Certificate<Storage>
fn clone(&self) -> Certificate<Storage>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for Certificate<&'de [u8]>
impl<'de> Deserialize<'de> for Certificate<&'de [u8]>
source§fn 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
source§impl<'de> Deserialize<'de> for Certificate<Cow<'de, [u8]>>
impl<'de> Deserialize<'de> for Certificate<Cow<'de, [u8]>>
source§fn 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
source§impl<'de> Deserialize<'de> for Certificate<Vec<u8>>
impl<'de> Deserialize<'de> for Certificate<Vec<u8>>
source§fn 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
source§impl<Storage> Serialize for Certificate<Storage>
impl<Storage> Serialize for Certificate<Storage>
impl<Storage: Eq + AsRef<[u8]>> Eq for Certificate<Storage>
impl<Storage: AsRef<[u8]>> StructuralPartialEq for Certificate<Storage>
Auto Trait Implementations§
impl<Storage> Freeze for Certificate<Storage>where
Storage: Freeze,
impl<Storage> RefUnwindSafe for Certificate<Storage>where
Storage: RefUnwindSafe,
impl<Storage> Send for Certificate<Storage>where
Storage: Send,
impl<Storage> Sync for Certificate<Storage>where
Storage: Sync,
impl<Storage> Unpin for Certificate<Storage>where
Storage: Unpin,
impl<Storage> UnwindSafe for Certificate<Storage>where
Storage: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)