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
source§fn clone(&self) -> AnonymousIdentity
fn clone(&self) -> AnonymousIdentity
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 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.impl Copy for AnonymousIdentity
Auto Trait Implementations§
impl Freeze for AnonymousIdentity
impl RefUnwindSafe for AnonymousIdentity
impl Send for AnonymousIdentity
impl Sync for AnonymousIdentity
impl Unpin 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
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
)