Struct pythnet_sdk::messages::TwapMessage
source · #[repr(C)]pub struct TwapMessage {
pub feed_id: FeedId,
pub cumulative_price: i128,
pub cumulative_conf: u128,
pub num_down_slots: u64,
pub exponent: i32,
pub publish_time: i64,
pub prev_publish_time: i64,
pub publish_slot: u64,
}
Expand description
Message format for sending Twap data via the accumulator program
Fields§
§feed_id: FeedId
§cumulative_price: i128
§cumulative_conf: u128
§num_down_slots: u64
§exponent: i32
§publish_time: i64
§prev_publish_time: i64
§publish_slot: u64
Trait Implementations§
source§impl Clone for TwapMessage
impl Clone for TwapMessage
source§fn clone(&self) -> TwapMessage
fn clone(&self) -> TwapMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TwapMessage
impl Debug for TwapMessage
source§impl<'de> Deserialize<'de> for TwapMessage
impl<'de> Deserialize<'de> for TwapMessage
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 PartialEq for TwapMessage
impl PartialEq for TwapMessage
source§impl Serialize for TwapMessage
impl Serialize for TwapMessage
impl Copy for TwapMessage
impl StructuralPartialEq for TwapMessage
Auto Trait Implementations§
impl Freeze for TwapMessage
impl RefUnwindSafe for TwapMessage
impl Send for TwapMessage
impl Sync for TwapMessage
impl Unpin for TwapMessage
impl UnwindSafe for TwapMessage
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
)