Struct ic_agent::identity::Delegation
source · pub struct Delegation {
pub pubkey: Vec<u8>,
pub expiration: u64,
pub targets: Option<Vec<Principal>>,
}Expand description
A delegation from one key to another.
If key A signs a delegation containing key B, then key B may be used to authenticate as key A’s corresponding principal(s).
Fields§
§pubkey: Vec<u8>The delegated-to key.
expiration: u64A nanosecond timestamp after which this delegation is no longer valid.
targets: Option<Vec<Principal>>If present, this delegation only applies to requests sent to one of these canisters.
Implementations§
source§impl Delegation
impl Delegation
Trait Implementations§
source§impl Clone for Delegation
impl Clone for Delegation
source§fn clone(&self) -> Delegation
fn clone(&self) -> Delegation
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 Debug for Delegation
impl Debug for Delegation
source§impl<'de> Deserialize<'de> for Delegation
impl<'de> Deserialize<'de> for Delegation
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Delegation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Delegation, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Delegation
impl Serialize for Delegation
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Delegation
impl Send for Delegation
impl Sync for Delegation
impl Unpin for Delegation
impl UnwindSafe for Delegation
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