Struct switchboard_aggregator::aggregator::AggregatorRound
source · [−]#[repr(packed)]pub struct AggregatorRound {Show 14 fields
pub num_success: u32,
pub num_error: u32,
pub is_closed: bool,
pub round_open_slot: u64,
pub round_open_timestamp: i64,
pub result: SwitchboardDecimal,
pub std_deviation: SwitchboardDecimal,
pub min_response: SwitchboardDecimal,
pub max_response: SwitchboardDecimal,
pub oracle_pubkeys_data: [Pubkey; 16],
pub medians_data: [SwitchboardDecimal; 16],
pub current_payout: [i64; 16],
pub medians_fulfilled: [bool; 16],
pub errors_fulfilled: [bool; 16],
}
Fields
num_success: u32
num_error: u32
is_closed: bool
round_open_slot: u64
round_open_timestamp: i64
result: SwitchboardDecimal
std_deviation: SwitchboardDecimal
min_response: SwitchboardDecimal
max_response: SwitchboardDecimal
oracle_pubkeys_data: [Pubkey; 16]
medians_data: [SwitchboardDecimal; 16]
current_payout: [i64; 16]
medians_fulfilled: [bool; 16]
errors_fulfilled: [bool; 16]
Trait Implementations
sourceimpl Clone for AggregatorRound
impl Clone for AggregatorRound
sourcefn clone(&self) -> AggregatorRound
fn clone(&self) -> AggregatorRound
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AggregatorRound
impl Debug for AggregatorRound
sourceimpl Default for AggregatorRound
impl Default for AggregatorRound
sourcefn default() -> AggregatorRound
fn default() -> AggregatorRound
Returns the “default value” for a type. Read more
sourceimpl PartialEq<AggregatorRound> for AggregatorRound
impl PartialEq<AggregatorRound> for AggregatorRound
sourcefn eq(&self, other: &AggregatorRound) -> bool
fn eq(&self, other: &AggregatorRound) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AggregatorRound) -> bool
fn ne(&self, other: &AggregatorRound) -> bool
This method tests for !=
.
impl Copy for AggregatorRound
impl Eq for AggregatorRound
impl StructuralEq for AggregatorRound
impl StructuralPartialEq for AggregatorRound
Auto Trait Implementations
impl RefUnwindSafe for AggregatorRound
impl Send for AggregatorRound
impl Sync for AggregatorRound
impl Unpin for AggregatorRound
impl UnwindSafe for AggregatorRound
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more