pub struct AssetParamsBase<T> {
pub denom: String,
pub credit_manager: CmSettings<T>,
pub red_bank: RedBankSettings,
pub max_loan_to_value: Decimal,
pub liquidation_threshold: Decimal,
pub liquidation_bonus: LiquidationBonus,
pub protocol_liquidation_fee: Decimal,
}Fields§
§denom: String§credit_manager: CmSettings<T>§red_bank: RedBankSettings§max_loan_to_value: Decimal§liquidation_threshold: Decimal§liquidation_bonus: LiquidationBonus§protocol_liquidation_fee: DecimalImplementations§
Source§impl AssetParamsBase<String>
impl AssetParamsBase<String>
pub fn check(&self, api: &dyn Api) -> ContractResult<AssetParams>
Trait Implementations§
Source§impl<T: Clone> Clone for AssetParamsBase<T>
impl<T: Clone> Clone for AssetParamsBase<T>
Source§fn clone(&self) -> AssetParamsBase<T>
fn clone(&self) -> AssetParamsBase<T>
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<T: Debug> Debug for AssetParamsBase<T>
impl<T: Debug> Debug for AssetParamsBase<T>
Source§impl<'de, T> Deserialize<'de> for AssetParamsBase<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for AssetParamsBase<T>where
T: Deserialize<'de>,
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 From<AssetParamsBase<Addr>> for AssetParamsUnchecked
impl From<AssetParamsBase<Addr>> for AssetParamsUnchecked
Source§fn from(p: AssetParams) -> Self
fn from(p: AssetParams) -> Self
Converts to this type from the input type.
Source§impl<T: JsonSchema> JsonSchema for AssetParamsBase<T>
impl<T: JsonSchema> JsonSchema for AssetParamsBase<T>
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 moreSource§impl<T: PartialEq> PartialEq for AssetParamsBase<T>
impl<T: PartialEq> PartialEq for AssetParamsBase<T>
Source§fn eq(&self, other: &AssetParamsBase<T>) -> bool
fn eq(&self, other: &AssetParamsBase<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T> Serialize for AssetParamsBase<T>where
T: Serialize,
impl<T> Serialize for AssetParamsBase<T>where
T: Serialize,
impl<T> StructuralPartialEq for AssetParamsBase<T>
Auto Trait Implementations§
impl<T> Freeze for AssetParamsBase<T>
impl<T> RefUnwindSafe for AssetParamsBase<T>where
T: RefUnwindSafe,
impl<T> Send for AssetParamsBase<T>where
T: Send,
impl<T> Sync for AssetParamsBase<T>where
T: Sync,
impl<T> Unpin for AssetParamsBase<T>where
T: Unpin,
impl<T> UnsafeUnpin for AssetParamsBase<T>
impl<T> UnwindSafe for AssetParamsBase<T>where
T: UnwindSafe,
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