pub struct SyncNative<'a> {
pub native_token: &'a AccountView,
}Expand description
Given a native token account updates its amount field based
on the account’s underlying lamports.
§Accounts:
[WRITE]The native token account to sync with its underlying lamports.
Fields§
§native_token: &'a AccountViewNative Token Account
Implementations§
Source§impl SyncNative<'_>
impl SyncNative<'_>
pub fn invoke(&self) -> Result<(), ProgramError>
Auto Trait Implementations§
impl<'a> Freeze for SyncNative<'a>
impl<'a> RefUnwindSafe for SyncNative<'a>
impl<'a> !Send for SyncNative<'a>
impl<'a> !Sync for SyncNative<'a>
impl<'a> Unpin for SyncNative<'a>
impl<'a> UnsafeUnpin for SyncNative<'a>
impl<'a> UnwindSafe for SyncNative<'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