pub struct GetStakeQuoteResponse {
pub amount: Option<i64>,
pub bond_status: Option<String>,
pub formula_version: Option<String>,
pub operator_class: Option<String>,
pub required_amount: i64,
pub risk_class: Option<String>,
pub tier: Option<String>,
pub value_basis: Option<i64>,
}Expand description
GetStakeQuoteResponse
JSON schema
{
"type": "object",
"required": [
"required_amount"
],
"properties": {
"amount": {
"description": "The bond's actual stake amount, once a bond row exists.",
"type": [
"integer",
"null"
],
"format": "int64"
},
"bond_status": {
"examples": [
"posting"
],
"type": [
"string",
"null"
]
},
"formula_version": {
"examples": [
"v1"
],
"type": [
"string",
"null"
]
},
"operator_class": {
"examples": [
"new"
],
"type": [
"string",
"null"
]
},
"required_amount": {
"description": "Required stake in bond base units. Posting more is allowed; less never verifies.",
"type": "integer",
"format": "int64"
},
"risk_class": {
"examples": [
"normal"
],
"type": [
"string",
"null"
]
},
"tier": {
"examples": [
"high_assurance"
],
"type": [
"string",
"null"
]
},
"value_basis": {
"description": "The task value the stake was priced from, in base units.",
"type": [
"integer",
"null"
],
"format": "int64"
}
}
}Fields§
§amount: Option<i64>The bond’s actual stake amount, once a bond row exists.
bond_status: Option<String>§formula_version: Option<String>§operator_class: Option<String>§required_amount: i64Required stake in bond base units. Posting more is allowed; less never verifies.
risk_class: Option<String>§tier: Option<String>§value_basis: Option<i64>The task value the stake was priced from, in base units.
Trait Implementations§
Source§impl Clone for GetStakeQuoteResponse
impl Clone for GetStakeQuoteResponse
Source§fn clone(&self) -> GetStakeQuoteResponse
fn clone(&self) -> GetStakeQuoteResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetStakeQuoteResponse
impl Debug for GetStakeQuoteResponse
Source§impl<'de> Deserialize<'de> for GetStakeQuoteResponse
impl<'de> Deserialize<'de> for GetStakeQuoteResponse
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
Auto Trait Implementations§
impl Freeze for GetStakeQuoteResponse
impl RefUnwindSafe for GetStakeQuoteResponse
impl Send for GetStakeQuoteResponse
impl Sync for GetStakeQuoteResponse
impl Unpin for GetStakeQuoteResponse
impl UnsafeUnpin for GetStakeQuoteResponse
impl UnwindSafe for GetStakeQuoteResponse
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