pub struct InitObligationParams {
pub current_slot: Slot,
pub lending_market: Pubkey,
pub owner: Pubkey,
pub deposits: Vec<ObligationCollateral>,
pub borrows: Vec<ObligationLiquidity>,
}Expand description
Initialize an obligation
Fields§
§current_slot: SlotLast update to collateral, liquidity, or their market values
lending_market: PubkeyLending market address
owner: PubkeyOwner authority which can borrow liquidity
deposits: Vec<ObligationCollateral>Deposited collateral for the obligation, unique by deposit reserve address
borrows: Vec<ObligationLiquidity>Borrowed liquidity for the obligation, unique by borrow reserve address
Auto Trait Implementations§
impl Freeze for InitObligationParams
impl RefUnwindSafe for InitObligationParams
impl Send for InitObligationParams
impl Sync for InitObligationParams
impl Unpin for InitObligationParams
impl UnwindSafe for InitObligationParams
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