Struct spacetraders::responses::AvailableLoan [−][src]
pub struct AvailableLoan { pub loan_type: LoanType, pub amount: i32, pub rate: f64, pub term_in_days: i32, pub collateral_required: bool, }
Expand description
A representation of an available loan
Fields
loan_type: LoanType
The loan type
amount: i32
The amount the user will receive from the loan
rate: f64
The payback rate of the loan
term_in_days: i32
The loan term length
collateral_required: bool
Does this loan require some collateral or not
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for AvailableLoan
impl Send for AvailableLoan
impl Sync for AvailableLoan
impl Unpin for AvailableLoan
impl UnwindSafe for AvailableLoan
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more