Struct spl_token::state::Multisig [−][src]
#[repr(C)]pub struct Multisig { pub m: u8, pub n: u8, pub is_initialized: bool, pub signers: [Pubkey; 11], }
Expand description
Multisignature data.
Fields
m: u8Expand description
Number of signers required
n: u8Expand description
Number of valid signers
is_initialized: boolExpand description
Is true if this structure has been initialized
signers: [Pubkey; 11]Expand description
Signer public keys
Trait Implementations
impl IsInitialized for Multisig[src]
impl IsInitialized for Multisig[src]fn is_initialized(&self) -> bool[src]
fn is_initialized(&self) -> bool[src]Is initialized
impl Pack for Multisig[src]
impl Pack for Multisig[src]fn unpack_from_slice(src: &[u8]) -> Result<Self, ProgramError>[src]
fn pack_into_slice(&self, dst: &mut [u8])[src]
fn get_packed_len() -> usize[src]
fn get_packed_len() -> usize[src]Get the packed length
fn unpack(input: &[u8]) -> Result<Self, ProgramError> where
Self: IsInitialized, [src]
fn unpack(input: &[u8]) -> Result<Self, ProgramError> where
Self: IsInitialized, [src]Unpack from slice and check if initialized
fn unpack_unchecked(input: &[u8]) -> Result<Self, ProgramError>[src]
fn unpack_unchecked(input: &[u8]) -> Result<Self, ProgramError>[src]Unpack from slice without checking if initialized
impl Copy for Multisig[src]
impl Sealed for Multisig[src]
impl StructuralPartialEq for Multisig[src]
Auto Trait Implementations
impl RefUnwindSafe for Multisig
impl Send for Multisig
impl Sync for Multisig
impl Unpin for Multisig
impl UnwindSafe for Multisig
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for Tpub default fn example() -> T
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,