#[non_exhaustive]#[repr(u8)]pub enum OraclePriceFlag {
Synthetic = 0,
Open = 1,
}Expand description
Flags for oracle price.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl From<OraclePriceFlag> for u8
impl From<OraclePriceFlag> for u8
Source§fn from(enum_value: OraclePriceFlag) -> Self
fn from(enum_value: OraclePriceFlag) -> Self
Converts to this type from the input type.
Source§impl TryFrom<u8> for OraclePriceFlag
impl TryFrom<u8> for OraclePriceFlag
Source§type Error = TryFromPrimitiveError<OraclePriceFlag>
type Error = TryFromPrimitiveError<OraclePriceFlag>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for OraclePriceFlag
impl TryFromPrimitive for OraclePriceFlag
const NAME: &'static str = "OraclePriceFlag"
type Primitive = u8
type Error = TryFromPrimitiveError<OraclePriceFlag>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for OraclePriceFlag
impl RefUnwindSafe for OraclePriceFlag
impl Send for OraclePriceFlag
impl Sync for OraclePriceFlag
impl Unpin for OraclePriceFlag
impl UnwindSafe for OraclePriceFlag
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