Struct mito_protocol::vault::OffchainInstantiateMsg
source · pub struct OffchainInstantiateMsg {
pub admin: String,
pub vault_type: OffchainVaultType,
pub market_id: MarketId,
pub oracle_stale_time: u64,
pub pending_redemption_timeout: u64,
pub notional_value_cap: FPDecimal,
pub inj_reward_commission_bps: u16,
pub withdrawal_admin_fee_bps: u16,
pub derivative_max_position_pnl_penalty: Option<FPDecimal>,
}Fields§
§admin: String§vault_type: OffchainVaultType§market_id: MarketId§oracle_stale_time: u64§pending_redemption_timeout: u64§notional_value_cap: FPDecimal§inj_reward_commission_bps: u16§withdrawal_admin_fee_bps: u16§derivative_max_position_pnl_penalty: Option<FPDecimal>Trait Implementations§
source§impl Clone for OffchainInstantiateMsg
impl Clone for OffchainInstantiateMsg
source§fn clone(&self) -> OffchainInstantiateMsg
fn clone(&self) -> OffchainInstantiateMsg
Returns a copy of the value. Read more
1.0.0 · 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 OffchainInstantiateMsg
impl Debug for OffchainInstantiateMsg
source§impl<'de> Deserialize<'de> for OffchainInstantiateMsg
impl<'de> Deserialize<'de> for OffchainInstantiateMsg
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 OffchainInstantiateMsg
impl JsonSchema for OffchainInstantiateMsg
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &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 PartialEq for OffchainInstantiateMsg
impl PartialEq for OffchainInstantiateMsg
source§fn eq(&self, other: &OffchainInstantiateMsg) -> bool
fn eq(&self, other: &OffchainInstantiateMsg) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for OffchainInstantiateMsg
impl Serialize for OffchainInstantiateMsg
impl Eq for OffchainInstantiateMsg
impl StructuralPartialEq for OffchainInstantiateMsg
Auto Trait Implementations§
impl Freeze for OffchainInstantiateMsg
impl RefUnwindSafe for OffchainInstantiateMsg
impl Send for OffchainInstantiateMsg
impl Sync for OffchainInstantiateMsg
impl Unpin for OffchainInstantiateMsg
impl UnwindSafe for OffchainInstantiateMsg
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)