Struct ic_certification::certificate::Delegation
source · pub struct Delegation<Storage: AsRef<[u8]>> {
pub subnet_id: Storage,
pub certificate: Storage,
}
Expand description
A Delegation
as defined in https://internetcomputer.org/docs/current/references/ic-interface-spec/#certification-delegation
Fields§
§subnet_id: Storage
§certificate: Storage
Trait Implementations§
source§impl<Storage: Clone + AsRef<[u8]>> Clone for Delegation<Storage>
impl<Storage: Clone + AsRef<[u8]>> Clone for Delegation<Storage>
source§fn clone(&self) -> Delegation<Storage>
fn clone(&self) -> Delegation<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 Delegation<&'de [u8]>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Delegation<&'de [u8]>
Available on crate feature
serde
only.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 Delegation<Cow<'de, [u8]>>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Delegation<Cow<'de, [u8]>>
Available on crate feature
serde
only.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 Delegation<Vec<u8>>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Delegation<Vec<u8>>
Available on crate feature
serde
only.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: PartialEq + AsRef<[u8]>> PartialEq for Delegation<Storage>
impl<Storage: PartialEq + AsRef<[u8]>> PartialEq for Delegation<Storage>
source§fn eq(&self, other: &Delegation<Storage>) -> bool
fn eq(&self, other: &Delegation<Storage>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Storage> Serialize for Delegation<Storage>
impl<Storage> Serialize for Delegation<Storage>
impl<Storage: Eq + AsRef<[u8]>> Eq for Delegation<Storage>
impl<Storage: AsRef<[u8]>> StructuralPartialEq for Delegation<Storage>
Auto Trait Implementations§
impl<Storage> Freeze for Delegation<Storage>where
Storage: Freeze,
impl<Storage> RefUnwindSafe for Delegation<Storage>where
Storage: RefUnwindSafe,
impl<Storage> Send for Delegation<Storage>where
Storage: Send,
impl<Storage> Sync for Delegation<Storage>where
Storage: Sync,
impl<Storage> Unpin for Delegation<Storage>where
Storage: Unpin,
impl<Storage> UnwindSafe for Delegation<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