pub enum Role {
Contact,
Custodian,
Controller,
}Expand description
The significance of a principal in the wallet’s address book.
Variants§
Contact
The principal has no particular significance, and is only there to be assigned a friendly name or be mentioned in the event log.
Custodian
The principal is a custodian of the wallet, and can therefore access the wallet, create canisters, and send and receive cycles.
Controller
The principal is a controller of the wallet, and can therefore access any wallet function or action.
Trait Implementations§
Source§impl CandidType for Role
impl CandidType for Role
Source§impl<'de> Deserialize<'de> for Role
impl<'de> Deserialize<'de> for Role
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
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
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