pub struct SyncNative<'a, 'b: 'a> {
pub token_program_id: &'a Pubkey,
pub source: &'b NoStdAccountInfo,
pub authority: CpiAuthority<'a, 'b>,
}Expand description
Arguments for the sync native instruction on the specified Token program, which synchronizes the amount (balance) on the token account with the number of excess lamports on the token account. Performing this call is effectively “wrapping” SOL as the mint representation of SOL.
Fields§
§token_program_id: &'a Pubkey§source: &'b NoStdAccountInfoImplementations§
Source§impl<'a, 'b: 'a> SyncNative<'a, 'b>
impl<'a, 'b: 'a> SyncNative<'a, 'b>
Sourcepub fn into_invoke(self)
pub fn into_invoke(self)
Consume arguments to perform CPI call.
Trait Implementations§
Source§impl<'a, 'b: 'a> Clone for SyncNative<'a, 'b>
impl<'a, 'b: 'a> Clone for SyncNative<'a, 'b>
impl<'a, 'b: 'a> Eq for SyncNative<'a, 'b>
Source§impl<'a, 'b: 'a> PartialEq for SyncNative<'a, 'b>
impl<'a, 'b: 'a> PartialEq for SyncNative<'a, 'b>
impl<'a, 'b: 'a> StructuralPartialEq for SyncNative<'a, 'b>
Auto Trait Implementations§
impl<'a, 'b> !Send for SyncNative<'a, 'b>
impl<'a, 'b> !Sync for SyncNative<'a, 'b>
impl<'a, 'b> Freeze for SyncNative<'a, 'b>
impl<'a, 'b> RefUnwindSafe for SyncNative<'a, 'b>
impl<'a, 'b> Unpin for SyncNative<'a, 'b>
impl<'a, 'b> UnsafeUnpin for SyncNative<'a, 'b>
impl<'a, 'b> UnwindSafe for SyncNative<'a, 'b>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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