#[non_exhaustive]pub enum ConfigAction {
AddMember {
new_member: Member,
},
RemoveMember {
old_member: Pubkey,
},
ChangeThreshold {
new_threshold: u16,
},
SetTimeLock {
new_time_lock: u32,
},
AddSpendingLimit {
create_key: Pubkey,
vault_index: u8,
mint: Pubkey,
amount: u64,
period: Period,
members: Vec<Pubkey>,
destinations: Vec<Pubkey>,
},
RemoveSpendingLimit {
spending_limit: Pubkey,
},
SetRentCollector {
new_rent_collector: Option<Pubkey>,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AddMember
Add a new member to the multisig.
RemoveMember
Remove a member from the multisig.
ChangeThreshold
Change the threshold of the multisig.
SetTimeLock
Change the time_lock of the multisig.
AddSpendingLimit
Change the time_lock of the multisig.
Fields
§
amount: u64The amount of tokens that can be spent in a period.
This amount is in decimals of the mint,
so 1 SOL would be 1_000_000_000 and 1 USDC would be 1_000_000.
§
period: PeriodThe reset period of the spending limit.
When it passes, the remaining amount is reset, unless it’s Period::OneTime.
RemoveSpendingLimit
Remove a spending limit from the multisig.
SetRentCollector
Set the rent_collector config parameter of the multisig.
Trait Implementations§
Source§impl BorshDeserialize for ConfigAction
impl BorshDeserialize for ConfigAction
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for ConfigActionwhere
Member: BorshSerialize,
Pubkey: BorshSerialize,
u16: BorshSerialize,
u32: BorshSerialize,
u8: BorshSerialize,
u64: BorshSerialize,
Period: BorshSerialize,
Vec<Pubkey>: BorshSerialize,
Option<Pubkey>: BorshSerialize,
impl BorshSerialize for ConfigActionwhere
Member: BorshSerialize,
Pubkey: BorshSerialize,
u16: BorshSerialize,
u32: BorshSerialize,
u8: BorshSerialize,
u64: BorshSerialize,
Period: BorshSerialize,
Vec<Pubkey>: BorshSerialize,
Option<Pubkey>: BorshSerialize,
Source§impl Clone for ConfigAction
impl Clone for ConfigAction
Source§fn clone(&self) -> ConfigAction
fn clone(&self) -> ConfigAction
Returns a duplicate 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 EnumExt for ConfigAction
impl EnumExt for ConfigAction
Source§impl PartialEq for ConfigAction
impl PartialEq for ConfigAction
impl Eq for ConfigAction
impl StructuralPartialEq for ConfigAction
Auto Trait Implementations§
impl Freeze for ConfigAction
impl RefUnwindSafe for ConfigAction
impl Send for ConfigAction
impl Sync for ConfigAction
impl Unpin for ConfigAction
impl UnwindSafe for ConfigAction
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more