Struct switchboard_aggregator::structs::aggregator::AggregatorRound [−][src]
#[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]
Implementations
Trait Implementations
impl BorshDeserialize for AggregatorRound where
u32: BorshDeserialize,
u32: BorshDeserialize,
bool: BorshDeserialize,
u64: BorshDeserialize,
i64: BorshDeserialize,
SwitchboardDecimal: BorshDeserialize,
SwitchboardDecimal: BorshDeserialize,
SwitchboardDecimal: BorshDeserialize,
SwitchboardDecimal: BorshDeserialize,
[Pubkey; 16]: BorshDeserialize,
[SwitchboardDecimal; 16]: BorshDeserialize,
[i64; 16]: BorshDeserialize,
[bool; 16]: BorshDeserialize,
[bool; 16]: BorshDeserialize,
impl BorshDeserialize for AggregatorRound where
u32: BorshDeserialize,
u32: BorshDeserialize,
bool: BorshDeserialize,
u64: BorshDeserialize,
i64: BorshDeserialize,
SwitchboardDecimal: BorshDeserialize,
SwitchboardDecimal: BorshDeserialize,
SwitchboardDecimal: BorshDeserialize,
SwitchboardDecimal: BorshDeserialize,
[Pubkey; 16]: BorshDeserialize,
[SwitchboardDecimal; 16]: BorshDeserialize,
[i64; 16]: BorshDeserialize,
[bool; 16]: BorshDeserialize,
[bool; 16]: BorshDeserialize,
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
pub default fn example() -> T
Mutably borrows from an owned value. Read more