Enum mito_protocol::vault::SpotRedemptionType
source · pub enum SpotRedemptionType {
FixedBaseAndQuote,
}Variants§
FixedBaseAndQuote
Trait Implementations§
source§impl<O: Into<EnumSet<SpotRedemptionType>>> BitAnd<O> for SpotRedemptionType
impl<O: Into<EnumSet<SpotRedemptionType>>> BitAnd<O> for SpotRedemptionType
source§impl<O: Into<EnumSet<SpotRedemptionType>>> BitOr<O> for SpotRedemptionType
impl<O: Into<EnumSet<SpotRedemptionType>>> BitOr<O> for SpotRedemptionType
source§impl<O: Into<EnumSet<SpotRedemptionType>>> BitXor<O> for SpotRedemptionType
impl<O: Into<EnumSet<SpotRedemptionType>>> BitXor<O> for SpotRedemptionType
source§impl Clone for SpotRedemptionType
impl Clone for SpotRedemptionType
source§impl Debug for SpotRedemptionType
impl Debug for SpotRedemptionType
source§impl<'de> Deserialize<'de> for SpotRedemptionType
impl<'de> Deserialize<'de> for SpotRedemptionType
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 SpotRedemptionType
impl EnumSetTypePrivate for SpotRedemptionType
source§const ALL_BITS: Self::Repr = {transmute(0x01): <vault::SpotRedemptionType as enumset::__internal::EnumSetTypePrivate>::Repr}
const ALL_BITS: Self::Repr = {transmute(0x01): <vault::SpotRedemptionType as enumset::__internal::EnumSetTypePrivate>::Repr}
A mask of bits that are valid in the bitset.
source§const VARIANT_COUNT: u32 = 1u32
const VARIANT_COUNT: u32 = 1u32
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<SpotRedemptionType>,
ser: S,
) -> Result<S::Ok, S::Error>
fn serialize<S: Serializer>( set: EnumSet<SpotRedemptionType>, ser: S, ) -> Result<S::Ok, S::Error>
Serializes the
EnumSet. Read moresource§fn deserialize<'de, D: Deserializer<'de>>(
de: D,
) -> Result<EnumSet<SpotRedemptionType>, D::Error>
fn deserialize<'de, D: Deserializer<'de>>( de: D, ) -> Result<EnumSet<SpotRedemptionType>, D::Error>
Deserializes the
EnumSet.source§impl JsonSchema for SpotRedemptionType
impl JsonSchema for SpotRedemptionType
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 Not for SpotRedemptionType
impl Not for SpotRedemptionType
source§impl PartialEq<EnumSet<SpotRedemptionType>> for SpotRedemptionType
impl PartialEq<EnumSet<SpotRedemptionType>> for SpotRedemptionType
source§impl PartialEq for SpotRedemptionType
impl PartialEq for SpotRedemptionType
source§impl Serialize for SpotRedemptionType
impl Serialize for SpotRedemptionType
source§impl<O: Into<EnumSet<SpotRedemptionType>>> Sub<O> for SpotRedemptionType
impl<O: Into<EnumSet<SpotRedemptionType>>> Sub<O> for SpotRedemptionType
impl Copy for SpotRedemptionType
impl EnumSetType for SpotRedemptionType
impl Eq for SpotRedemptionType
Auto Trait Implementations§
impl Freeze for SpotRedemptionType
impl RefUnwindSafe for SpotRedemptionType
impl Send for SpotRedemptionType
impl Sync for SpotRedemptionType
impl Unpin for SpotRedemptionType
impl UnwindSafe for SpotRedemptionType
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)