Struct switchboard_program::RoundResult
source · [−]pub struct RoundResult {
pub num_success: Option<i32>,
pub num_error: Option<i32>,
pub result: Option<f64>,
pub round_open_slot: Option<u64>,
pub round_open_timestamp: Option<i64>,
pub min_response: Option<f64>,
pub max_response: Option<f64>,
pub medians: Vec<f64, Global>,
}
Fields
num_success: Option<i32>
num_error: Option<i32>
result: Option<f64>
round_open_slot: Option<u64>
round_open_timestamp: Option<i64>
min_response: Option<f64>
max_response: Option<f64>
medians: Vec<f64, Global>
Trait Implementations
impl BorshDeserialize for RoundResult where
Option<i32>: BorshDeserialize,
Option<f64>: BorshDeserialize,
Option<u64>: BorshDeserialize,
Option<i64>: BorshDeserialize,
Vec<f64, Global>: BorshDeserialize,
impl BorshDeserialize for RoundResult where
Option<i32>: BorshDeserialize,
Option<f64>: BorshDeserialize,
Option<u64>: BorshDeserialize,
Option<i64>: BorshDeserialize,
Vec<f64, Global>: BorshDeserialize,
impl BorshSerialize for RoundResult where
Option<i32>: BorshSerialize,
Option<f64>: BorshSerialize,
Option<u64>: BorshSerialize,
Option<i64>: BorshSerialize,
Vec<f64, Global>: BorshSerialize,
impl BorshSerialize for RoundResult where
Option<i32>: BorshSerialize,
Option<f64>: BorshSerialize,
Option<u64>: BorshSerialize,
Option<i64>: BorshSerialize,
Vec<f64, Global>: BorshSerialize,
Returns the “default value” for a type. Read more
Constructs an instance of Self
by reading from the given bytes
via the given reader. Read more
Computes necessary binary size of self once serialized in protobuf
pub fn write_message<W>(&self, w: &mut Writer<W>) -> Result<(), Error> where
W: WriterBackend,
pub fn write_message<W>(&self, w: &mut Writer<W>) -> Result<(), Error> where
W: WriterBackend,
Writes Self
into W writer
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 RoundResult
impl Send for RoundResult
impl Sync for RoundResult
impl Unpin for RoundResult
impl UnwindSafe for RoundResult
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more