Enum pyth_client::PriceType
source · [−]#[repr(C)]
pub enum PriceType {
Unknown,
Price,
}
Expand description
The type of prices associated with a product – each product may have multiple price feeds of different types.
Variants
Unknown
Price
Trait Implementations
sourceimpl BorshDeserialize for PriceType
impl BorshDeserialize for PriceType
sourceimpl BorshSerialize for PriceType
impl BorshSerialize for PriceType
sourceimpl<'de> Deserialize<'de> for PriceType
impl<'de> Deserialize<'de> for PriceType
sourcefn 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
impl Copy for PriceType
impl Eq for PriceType
impl StructuralEq for PriceType
impl StructuralPartialEq for PriceType
Auto Trait Implementations
impl RefUnwindSafe for PriceType
impl Send for PriceType
impl Sync for PriceType
impl Unpin for PriceType
impl UnwindSafe for PriceType
Blanket Implementations
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more