pub struct VaultMintRequest {
pub vault_id: u32,
pub symbol: String,
pub quantity: Decimal,
pub auto_borrow: Option<bool>,
pub auto_lend_redeem: Option<bool>,
}Expand description
Request payload for minting vault tokens.
Fields§
§vault_id: u32The vault ID to mint tokens from.
symbol: StringThe symbol of the asset to deposit.
quantity: DecimalAmount to deposit.
auto_borrow: Option<bool>Whether to allow auto borrowing when depositing into vault.
auto_lend_redeem: Option<bool>Whether to allow auto redeem lent assets when depositing into vault.
Trait Implementations§
Source§impl Clone for VaultMintRequest
impl Clone for VaultMintRequest
Source§fn clone(&self) -> VaultMintRequest
fn clone(&self) -> VaultMintRequest
Returns a duplicate 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 VaultMintRequest
impl Debug for VaultMintRequest
Source§impl<'de> Deserialize<'de> for VaultMintRequest
impl<'de> Deserialize<'de> for VaultMintRequest
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 VaultMintRequest
impl RefUnwindSafe for VaultMintRequest
impl Send for VaultMintRequest
impl Sync for VaultMintRequest
impl Unpin for VaultMintRequest
impl UnsafeUnpin for VaultMintRequest
impl UnwindSafe for VaultMintRequest
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