Struct jet_fixed_term::orderbook::instructions::consume_events::UserAccount
source · [−]pub struct UserAccount<'info>(_);
Implementations
sourceimpl<'info> UserAccount<'info>
impl<'info> UserAccount<'info>
pub fn new(account: AccountInfo<'info>) -> Self
pub fn pubkey(&self) -> Pubkey
sourcepub fn as_token_account(&self) -> AccountInfo<'info>
pub fn as_token_account(&self) -> AccountInfo<'info>
token account that will receive a deposit of underlying or tickets
sourcepub fn as_owner(&self) -> AccountInfo<'info>
pub fn as_owner(&self) -> AccountInfo<'info>
arbitrary unchecked account that will be granted ownership of a split ticket
pub fn margin_user(&self) -> Result<AnchorAccount<'info, MarginUser, Mut>>
Auto Trait Implementations
impl<'info> !RefUnwindSafe for UserAccount<'info>
impl<'info> !Send for UserAccount<'info>
impl<'info> !Sync for UserAccount<'info>
impl<'info> Unpin for UserAccount<'info>
impl<'info> !UnwindSafe for UserAccount<'info>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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