pub enum LoanAccount<'info> {
AutoStake(AnchorAccount<'info, SplitTicket, Mut>),
NewDebt(AnchorAccount<'info, TermLoan, Mut>),
}
Variants
AutoStake(AnchorAccount<'info, SplitTicket, Mut>)
Use if AUTO_STAKE is set in the maker’s callback
NewDebt(AnchorAccount<'info, TermLoan, Mut>)
Use if NEW_DEBT is set in the maker’s callback
Implementations
sourceimpl<'info> LoanAccount<'info>
impl<'info> LoanAccount<'info>
pub fn auto_stake(
&mut self
) -> Result<&mut AnchorAccount<'info, SplitTicket, Mut>>
pub fn new_debt(&mut self) -> Result<&mut AnchorAccount<'info, TermLoan, Mut>>
Auto Trait Implementations
impl<'info> !RefUnwindSafe for LoanAccount<'info>
impl<'info> !Send for LoanAccount<'info>
impl<'info> !Sync for LoanAccount<'info>
impl<'info> Unpin for LoanAccount<'info>
impl<'info> !UnwindSafe for LoanAccount<'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