pub struct PmFinancingResponse {
pub wallet: AccountAddress,
pub account: Option<AccountAddress>,
pub is_pm_account: bool,
pub measured_at_ms: u64,
pub borrow_apr: Decimal,
pub items: Vec<PmFinancingItem>,
pub totals: PmFinancingTotals,
pub margin: Option<PmFinancingMargin>,
pub box_financing: Option<Value>,
pub repayment: Option<PmFinancingRepayment>,
}Expand description
GET /v1/pm-financing: one wallet’s PM borrowing.
Fields§
§wallet: AccountAddress§account: Option<AccountAddress>The wallet’s Portfolio Margin Account.sol, if it has one.
is_pm_account: bool§measured_at_ms: u64§borrow_apr: Decimal§items: Vec<PmFinancingItem>§totals: PmFinancingTotals§margin: Option<PmFinancingMargin>§box_financing: Option<Value>Financed PM boxes, as the server returns them.
repayment: Option<PmFinancingRepayment>Voluntary repayment capacity and requests. None for a Standard
account, or from a server without voluntary repayment.
Trait Implementations§
Source§impl Clone for PmFinancingResponse
impl Clone for PmFinancingResponse
Source§impl Debug for PmFinancingResponse
impl Debug for PmFinancingResponse
Source§impl<'de> Deserialize<'de> for PmFinancingResponse
impl<'de> Deserialize<'de> for PmFinancingResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PmFinancingResponse
impl PartialEq for PmFinancingResponse
Source§impl Serialize for PmFinancingResponse
impl Serialize for PmFinancingResponse
impl StructuralPartialEq for PmFinancingResponse
Auto Trait Implementations§
impl Forget for PmFinancingResponse
impl Freeze for PmFinancingResponse
impl Move for PmFinancingResponse
impl RefUnwindSafe for PmFinancingResponse
impl Send for PmFinancingResponse
impl Sync for PmFinancingResponse
impl Unpin for PmFinancingResponse
impl UnsafeUnpin for PmFinancingResponse
impl UnwindSafe for PmFinancingResponse
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<'de, T> BorrowedRpcObject<'de> for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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