pub struct Lock<'a> {Show 13 fields
pub authority_info: &'a AccountInfo<'a>,
pub token_owner_info: Option<&'a AccountInfo<'a>>,
pub token_info: &'a AccountInfo<'a>,
pub mint_info: &'a AccountInfo<'a>,
pub metadata_info: &'a AccountInfo<'a>,
pub edition_info: Option<&'a AccountInfo<'a>>,
pub token_record_info: Option<&'a AccountInfo<'a>>,
pub payer_info: &'a AccountInfo<'a>,
pub system_program_info: &'a AccountInfo<'a>,
pub sysvar_instructions_info: &'a AccountInfo<'a>,
pub spl_token_program_info: Option<&'a AccountInfo<'a>>,
pub authorization_rules_program_info: Option<&'a AccountInfo<'a>>,
pub authorization_rules_info: Option<&'a AccountInfo<'a>>,
}Fields§
§token_owner_info: Option<&'a AccountInfo<'a>>§token_info: &'a AccountInfo<'a>§mint_info: &'a AccountInfo<'a>§metadata_info: &'a AccountInfo<'a>§edition_info: Option<&'a AccountInfo<'a>>§token_record_info: Option<&'a AccountInfo<'a>>§payer_info: &'a AccountInfo<'a>§system_program_info: &'a AccountInfo<'a>§sysvar_instructions_info: &'a AccountInfo<'a>§spl_token_program_info: Option<&'a AccountInfo<'a>>Implementations§
Source§impl<'a> Lock<'a>
impl<'a> Lock<'a>
pub fn to_context( accounts: &'a [AccountInfo<'a>], ) -> Result<Context<'a, Self>, ProgramError>
Auto Trait Implementations§
impl<'a> Freeze for Lock<'a>
impl<'a> !RefUnwindSafe for Lock<'a>
impl<'a> !Send for Lock<'a>
impl<'a> !Sync for Lock<'a>
impl<'a> Unpin for Lock<'a>
impl<'a> !UnwindSafe for Lock<'a>
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> 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