pub struct Params {
pub auction_discount: Decimal,
pub min_collateral_ratio: Decimal,
pub weight: Option<u32>,
pub mint_period: Option<u64>,
pub min_collateral_ratio_after_ipo: Option<Decimal>,
pub pre_ipo_price: Option<Decimal>,
}
Fields§
§auction_discount: Decimal
Auction discount rate applied to asset mint
min_collateral_ratio: Decimal
Minium collateral ratio applied to asset mint
weight: Option<u32>
Distribution weight (default is 30, which is 1/10 of MIR distribution weight)
mint_period: Option<u64>
For pre-IPO assets, time period after asset creation in which minting is enabled
min_collateral_ratio_after_ipo: Option<Decimal>
For pre-IPO assets, collateral ratio for the asset after ipo
pre_ipo_price: Option<Decimal>
For pre-IPO assets, fixed price during minting period
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Params
impl<'de> Deserialize<'de> for Params
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 JsonSchema for Params
impl JsonSchema for Params
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreimpl StructuralPartialEq for Params
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
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