Struct switchboard_on_demand::on_demand::accounts::pull_feed::CurrentResult
source · #[repr(C)]pub struct CurrentResult {
pub value: i128,
pub std_dev: i128,
pub mean: i128,
pub range: i128,
pub min_value: i128,
pub max_value: i128,
pub padding1: [u8; 8],
pub slot: u64,
pub min_slot: u64,
pub max_slot: u64,
}
Fields§
§value: i128
The median value of the submissions needed for quorom size
std_dev: i128
The standard deviation of the submissions needed for quorom size
mean: i128
The mean of the submissions needed for quorom size
range: i128
The range of the submissions needed for quorom size
min_value: i128
The minimum value of the submissions needed for quorom size
max_value: i128
The maximum value of the submissions needed for quorom size
padding1: [u8; 8]
§slot: u64
The slot at which this value was signed.
min_slot: u64
The slot at which the first considered submission was made
max_slot: u64
The slot at which the last considered submission was made
Implementations§
source§impl CurrentResult
impl CurrentResult
sourcepub fn value(&self) -> Option<Decimal>
pub fn value(&self) -> Option<Decimal>
The median value of the submissions needed for quorom size
sourcepub fn std_dev(&self) -> Option<Decimal>
pub fn std_dev(&self) -> Option<Decimal>
The standard deviation of the submissions needed for quorom size
sourcepub fn min_value(&self) -> Option<Decimal>
pub fn min_value(&self) -> Option<Decimal>
The minimum value of the submissions needed for quorom size
sourcepub fn max_value(&self) -> Option<Decimal>
pub fn max_value(&self) -> Option<Decimal>
The maximum value of the submissions needed for quorom size
pub fn result_slot(&self) -> Option<u64>
pub fn min_slot(&self) -> Option<u64>
pub fn max_slot(&self) -> Option<u64>
Trait Implementations§
source§impl Clone for CurrentResult
impl Clone for CurrentResult
source§fn clone(&self) -> CurrentResult
fn clone(&self) -> CurrentResult
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 CurrentResult
impl Debug for CurrentResult
impl Copy for CurrentResult
impl Pod for CurrentResult
Auto Trait Implementations§
impl Freeze for CurrentResult
impl RefUnwindSafe for CurrentResult
impl Send for CurrentResult
impl Sync for CurrentResult
impl Unpin for CurrentResult
impl UnwindSafe for CurrentResult
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
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
.§fn 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
.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
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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