pub struct Vault {
pub id: u32,
pub vault_token: String,
pub symbol: String,
pub mints_enabled: bool,
pub redeems_enabled: bool,
pub min_mint_quantity: Decimal,
pub min_redeem_tokens: Decimal,
pub redeem_delay_ms: i64,
pub token_step_size: Decimal,
}Expand description
Public vault information.
Fields§
§id: u32Unique identifier for the vault.
vault_token: StringThe asset that represents shares in this vault.
symbol: StringThe symbol used for minting and redeeming vault tokens.
mints_enabled: boolWhether the vault is currently accepting mints.
redeems_enabled: boolWhether the vault is currently allowing redeems.
min_mint_quantity: DecimalMinimum quantity required to mint vault tokens.
min_redeem_tokens: DecimalMinimum vault token amount required to redeem.
redeem_delay_ms: i64Minimum delay (in milliseconds) between redeem request and execution.
token_step_size: DecimalStep size for vault token quantities.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vault
impl<'de> Deserialize<'de> for Vault
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 Vault
impl RefUnwindSafe for Vault
impl Send for Vault
impl Sync for Vault
impl Unpin for Vault
impl UnsafeUnpin for Vault
impl UnwindSafe for Vault
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