pub struct InitializeSpotMarket {
pub _optimal_utilization: u32,
pub _optimal_borrow_rate: u32,
pub _max_borrow_rate: u32,
pub _oracle_source: OracleSource,
pub _initial_asset_weight: u32,
pub _maintenance_asset_weight: u32,
pub _initial_liability_weight: u32,
pub _maintenance_liability_weight: u32,
pub _imf_factor: u32,
pub _liquidator_fee: u32,
pub _active_status: bool,
pub _name: [u8; 32],
}Expand description
Instruction.
Fields§
§_optimal_utilization: u32§_optimal_borrow_rate: u32§_max_borrow_rate: u32§_oracle_source: OracleSource§_initial_asset_weight: u32§_maintenance_asset_weight: u32§_initial_liability_weight: u32§_maintenance_liability_weight: u32§_imf_factor: u32§_liquidator_fee: u32§_active_status: bool§_name: [u8; 32]Trait Implementations§
Source§impl BorshDeserialize for InitializeSpotMarketwhere
u32: BorshDeserialize,
OracleSource: BorshDeserialize,
bool: BorshDeserialize,
[u8; 32]: BorshDeserialize,
impl BorshDeserialize for InitializeSpotMarketwhere
u32: BorshDeserialize,
OracleSource: BorshDeserialize,
bool: BorshDeserialize,
[u8; 32]: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for InitializeSpotMarketwhere
u32: BorshSerialize,
OracleSource: BorshSerialize,
bool: BorshSerialize,
[u8; 32]: BorshSerialize,
impl BorshSerialize for InitializeSpotMarketwhere
u32: BorshSerialize,
OracleSource: BorshSerialize,
bool: BorshSerialize,
[u8; 32]: BorshSerialize,
Source§impl Discriminator for InitializeSpotMarket
impl Discriminator for InitializeSpotMarket
Source§const DISCRIMINATOR: &'static [u8]
const DISCRIMINATOR: &'static [u8]
Discriminator slice. Read more
Auto Trait Implementations§
impl Freeze for InitializeSpotMarket
impl RefUnwindSafe for InitializeSpotMarket
impl Send for InitializeSpotMarket
impl Sync for InitializeSpotMarket
impl Unpin for InitializeSpotMarket
impl UnwindSafe for InitializeSpotMarket
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