Struct mpl_token_vault::state::SafetyDepositBox
source · [−]#[repr(C)]pub struct SafetyDepositBox {
pub key: Key,
pub vault: Pubkey,
pub token_mint: Pubkey,
pub store: Pubkey,
pub order: u8,
}
Fields
key: Key
Each token type in a vault has it’s own box that contains it’s mint and a look-back
vault: Pubkey
Key pointing to the parent vault
token_mint: Pubkey
This particular token’s mint
store: Pubkey
Account that stores the tokens under management
order: u8
the order in the array of registries
Implementations
sourceimpl SafetyDepositBox
impl SafetyDepositBox
pub fn from_account_info(
a: &AccountInfo<'_>
) -> Result<SafetyDepositBox, ProgramError>
pub fn get_order(a: &AccountInfo<'_>) -> u8
Trait Implementations
sourceimpl BorshDeserialize for SafetyDepositBox where
Key: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u8: BorshDeserialize,
impl BorshDeserialize for SafetyDepositBox where
Key: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u8: BorshDeserialize,
sourceimpl BorshSerialize for SafetyDepositBox where
Key: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
u8: BorshSerialize,
impl BorshSerialize for SafetyDepositBox where
Key: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
u8: BorshSerialize,
sourceimpl Clone for SafetyDepositBox
impl Clone for SafetyDepositBox
sourcefn clone(&self) -> SafetyDepositBox
fn clone(&self) -> SafetyDepositBox
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for SafetyDepositBox
impl Send for SafetyDepositBox
impl Sync for SafetyDepositBox
impl Unpin for SafetyDepositBox
impl UnwindSafe for SafetyDepositBox
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more