pub struct FeedVersion(pub u16);Expand description
Represents the feed report schema version.
The FeedVersion struct wraps a u16 integer representing the version of the feed report schema.
§Examples
use chainlink_data_streams_sdk::feed::FeedVersion;
let version = FeedVersion(1);
println!("Feed version: {}", version.0);Tuple Fields§
§0: u16Trait Implementations§
Source§impl Clone for FeedVersion
impl Clone for FeedVersion
Source§fn clone(&self) -> FeedVersion
fn clone(&self) -> FeedVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FeedVersion
impl Debug for FeedVersion
Source§impl Hash for FeedVersion
impl Hash for FeedVersion
Source§impl PartialEq for FeedVersion
impl PartialEq for FeedVersion
Source§fn eq(&self, other: &FeedVersion) -> bool
fn eq(&self, other: &FeedVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FeedVersion
impl Eq for FeedVersion
impl StructuralPartialEq for FeedVersion
Auto Trait Implementations§
impl Freeze for FeedVersion
impl RefUnwindSafe for FeedVersion
impl Send for FeedVersion
impl Sync for FeedVersion
impl Unpin for FeedVersion
impl UnsafeUnpin for FeedVersion
impl UnwindSafe for FeedVersion
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.