pub struct TokenAccountBuilder<'a> { /* private fields */ }Implementations§
Source§impl TokenAccountBuilder<'_>
impl TokenAccountBuilder<'_>
pub fn create(self) -> Result<Pubkey>
pub fn mint(self, mint: Pubkey) -> Self
pub fn token_owner(self, owner: Pubkey) -> Self
pub fn amount(self, amount: u64) -> Self
pub fn delegate(self, delegate: Option<Pubkey>) -> Self
pub fn state(self, state: AccountState) -> Self
pub fn is_native(self, native_amount: Option<u64>) -> Self
pub fn delegated_amount(self, amount: u64) -> Self
Trait Implementations§
Source§impl AccountBuilderBase for TokenAccountBuilder<'_>
impl AccountBuilderBase for TokenAccountBuilder<'_>
fn account_state_mut(&mut self) -> &mut Account
fn address_mut(&mut self) -> &mut Pubkey
fn pubkey(self, pk: Pubkey) -> Self
fn owner(self, pk: Pubkey) -> Self
fn executable(self, val: bool) -> Self
fn rent_epoch(self, val: u64) -> Self
fn lamports(self, amount: u64) -> Self
fn size(self, length: usize) -> Self
fn data(self, bytes: &[u8]) -> Self
Auto Trait Implementations§
impl<'a> Freeze for TokenAccountBuilder<'a>
impl<'a> !RefUnwindSafe for TokenAccountBuilder<'a>
impl<'a> Send for TokenAccountBuilder<'a>
impl<'a> Sync for TokenAccountBuilder<'a>
impl<'a> Unpin for TokenAccountBuilder<'a>
impl<'a> UnsafeUnpin for TokenAccountBuilder<'a>
impl<'a> !UnwindSafe for TokenAccountBuilder<'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