Enum mito_protocol::vault::VaultType
source · pub enum VaultType {
Amm,
SpotAsmm,
DerivativeAsmm,
SpotOffchain,
DerivativeOffchain,
}Variants§
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for VaultType
impl<'de> Deserialize<'de> for VaultType
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 EnumSetTypePrivate for VaultType
impl EnumSetTypePrivate for VaultType
source§const ALL_BITS: Self::Repr = {transmute(0x1f): <vault::VaultType as enumset::__internal::EnumSetTypePrivate>::Repr}
const ALL_BITS: Self::Repr = {transmute(0x1f): <vault::VaultType as enumset::__internal::EnumSetTypePrivate>::Repr}
A mask of bits that are valid in the bitset.
source§const VARIANT_COUNT: u32 = 5u32
const VARIANT_COUNT: u32 = 5u32
The number of variants in the bitset.
source§fn enum_into_u32(self) -> u32
fn enum_into_u32(self) -> u32
Converts an enum of this type into its bit position.
source§unsafe fn enum_from_u32(val: u32) -> Self
unsafe fn enum_from_u32(val: u32) -> Self
Converts a bit position into an enum value.
source§fn serialize<S: Serializer>(
set: EnumSet<VaultType>,
ser: S,
) -> Result<S::Ok, S::Error>
fn serialize<S: Serializer>( set: EnumSet<VaultType>, ser: S, ) -> Result<S::Ok, S::Error>
Serializes the
EnumSet. Read moresource§fn deserialize<'de, D: Deserializer<'de>>(
de: D,
) -> Result<EnumSet<VaultType>, D::Error>
fn deserialize<'de, D: Deserializer<'de>>( de: D, ) -> Result<EnumSet<VaultType>, D::Error>
Deserializes the
EnumSet.source§impl JsonSchema for VaultType
impl JsonSchema for VaultType
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<EnumSet<VaultType>> for VaultType
impl PartialEq<EnumSet<VaultType>> for VaultType
source§impl PartialEq for VaultType
impl PartialEq for VaultType
impl Copy for VaultType
impl EnumSetType for VaultType
impl Eq for VaultType
Auto Trait Implementations§
impl Freeze for VaultType
impl RefUnwindSafe for VaultType
impl Send for VaultType
impl Sync for VaultType
impl Unpin for VaultType
impl UnwindSafe for VaultType
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)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)