pub enum Command {
Call {
canister: Principal,
method_name: String,
args_blob: Vec<u8>,
cycles: u64,
response: Option<Vec<u8>>,
},
AddOrRemoveSigner {
principals: HashSet<UpdateOwner>,
threshold: usize,
},
}Variants§
Call
Requests multi-sig to perform an inter-canister call to another canister.
Fields
AddOrRemoveSigner
Change the voting power of a user, it can be used to insert a new participant in this wallet, or remove one by setting their new_voting_power to zero.
Fields
§
principals: HashSet<UpdateOwner>The user that this command should effect their voting power.
Trait Implementations§
Source§impl CandidType for Command
impl CandidType for Command
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
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 Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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