pub struct AnonymousIdentity;Expand description
The anonymous identity.
The caller will be represented as Principal::anonymous, or 2vxsx-fae.
Trait Implementations§
Source§impl Clone for AnonymousIdentity
impl Clone for AnonymousIdentity
impl Copy for AnonymousIdentity
Source§impl Debug for AnonymousIdentity
impl Debug for AnonymousIdentity
Source§impl Identity for AnonymousIdentity
impl Identity for AnonymousIdentity
Source§fn sender(&self) -> Result<Principal, String>
fn sender(&self) -> Result<Principal, String>
Returns a sender, ie. the Principal ID that is used to sign a request. Read more
Source§fn sign(&self, _: &EnvelopeContent) -> Result<Signature, String>
fn sign(&self, _: &EnvelopeContent) -> Result<Signature, String>
Sign a request ID derived from a content map. Read more
Source§fn sign_arbitrary(&self, _: &[u8]) -> Result<Signature, String>
fn sign_arbitrary(&self, _: &[u8]) -> Result<Signature, String>
Sign arbitrary bytes. Read more
Source§fn sign_delegation(&self, content: &Delegation) -> Result<Signature, String>
fn sign_delegation(&self, content: &Delegation) -> Result<Signature, String>
Source§fn delegation_chain(&self) -> Vec<SignedDelegation>
fn delegation_chain(&self) -> Vec<SignedDelegation>
A list of signed delegations connecting
sender
to public_key, and in that order.Source§fn sender_info(&self) -> Option<SenderInfo>
fn sender_info(&self) -> Option<SenderInfo>
Returns canister-certified sender information to include in the request envelope, or
None. Read moreAuto Trait Implementations§
impl Freeze for AnonymousIdentity
impl RefUnwindSafe for AnonymousIdentity
impl Send for AnonymousIdentity
impl Sync for AnonymousIdentity
impl Unpin for AnonymousIdentity
impl UnsafeUnpin for AnonymousIdentity
impl UnwindSafe for AnonymousIdentity
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