pub struct PayloadData {
pub timestamp_us: TimestampUs,
pub channel_id: ChannelId,
pub feeds: Vec<PayloadFeedData>,
}
Expand description
Data contained within a signable payload.
Fields§
§timestamp_us: TimestampUs
§channel_id: ChannelId
§feeds: Vec<PayloadFeedData>
Implementations§
Source§impl PayloadData
impl PayloadData
pub fn new( timestamp_us: TimestampUs, channel_id: ChannelId, feeds: &[(PriceFeedId, i16, AggregatedPriceFeedData)], requested_properties: &[PriceFeedProperty], ) -> Self
pub fn serialize<BO: ByteOrder>(&self, writer: impl Write) -> Result<()>
pub fn deserialize_slice_le(data: &[u8]) -> Result<Self>
pub fn deserialize_slice_be(data: &[u8]) -> Result<Self>
pub fn deserialize<BO: ByteOrder>(reader: impl Read) -> Result<Self>
Trait Implementations§
Source§impl Clone for PayloadData
impl Clone for PayloadData
Source§fn clone(&self) -> PayloadData
fn clone(&self) -> PayloadData
Returns a duplicate 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 PayloadData
impl Debug for PayloadData
Source§impl Hash for PayloadData
impl Hash for PayloadData
Source§impl PartialEq for PayloadData
impl PartialEq for PayloadData
impl Eq for PayloadData
impl StructuralPartialEq for PayloadData
Auto Trait Implementations§
impl Freeze for PayloadData
impl RefUnwindSafe for PayloadData
impl Send for PayloadData
impl Sync for PayloadData
impl Unpin for PayloadData
impl UnwindSafe for PayloadData
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more