Struct pyth_client::Product
source · [−]#[repr(C)]pub struct Product {
pub magic: u32,
pub ver: u32,
pub atype: u32,
pub size: u32,
pub px_acc: AccKey,
pub attr: [u8; 464],
}
This crate has been deprecated. Please use pyth-sdk-solana instead.
Expand description
Product accounts contain metadata for a single product, such as its symbol (“Crypto.BTC/USD”) and its base/quote currencies.
Fields
magic: u32
This crate has been deprecated. Please use pyth-sdk-solana instead.
pyth magic number
ver: u32
This crate has been deprecated. Please use pyth-sdk-solana instead.
program version
atype: u32
This crate has been deprecated. Please use pyth-sdk-solana instead.
account type
size: u32
This crate has been deprecated. Please use pyth-sdk-solana instead.
price account size
px_acc: AccKey
This crate has been deprecated. Please use pyth-sdk-solana instead.
first price account in list
attr: [u8; 464]
This crate has been deprecated. Please use pyth-sdk-solana instead.
key/value pairs of reference attr.
Implementations
sourceimpl Product
impl Product
pub fn iter(&self) -> AttributeIter<'_>ⓘNotable traits for AttributeIter<'a>impl<'a> Iterator for AttributeIter<'a> type Item = (&'a str, &'a str);
This crate has been deprecated. Please use pyth-sdk-solana instead.
Trait Implementations
impl Copy for Product
impl Eq for Product
impl Pod for Product
impl StructuralEq for Product
impl StructuralPartialEq for Product
Auto Trait Implementations
impl RefUnwindSafe for Product
impl Send for Product
impl Sync for Product
impl Unpin for Product
impl UnwindSafe for Product
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedBitPattern for T where
T: AnyBitPattern,
impl<T> CheckedBitPattern for T where
T: AnyBitPattern,
type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during is_valid_bit_pattern
. Read more
sourcefn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret bits
as &Self
.
impl<T> Pointable for T
impl<T> Pointable for T
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more