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>,
}
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>
Trait Implementations§
Source§impl BorshDeserialize for RoundResultwhere
Option<i32>: BorshDeserialize,
Option<f64>: BorshDeserialize,
Option<u64>: BorshDeserialize,
Option<i64>: BorshDeserialize,
Vec<f64>: BorshDeserialize,
impl BorshDeserialize for RoundResultwhere
Option<i32>: BorshDeserialize,
Option<f64>: BorshDeserialize,
Option<u64>: BorshDeserialize,
Option<i64>: BorshDeserialize,
Vec<f64>: BorshDeserialize,
Source§fn deserialize(buf: &mut &[u8]) -> Result<RoundResult, Error>
fn deserialize(buf: &mut &[u8]) -> Result<RoundResult, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§impl BorshSerialize for RoundResultwhere
Option<i32>: BorshSerialize,
Option<f64>: BorshSerialize,
Option<u64>: BorshSerialize,
Option<i64>: BorshSerialize,
Vec<f64>: BorshSerialize,
impl BorshSerialize for RoundResultwhere
Option<i32>: BorshSerialize,
Option<f64>: BorshSerialize,
Option<u64>: BorshSerialize,
Option<i64>: BorshSerialize,
Vec<f64>: BorshSerialize,
Source§impl Clone for RoundResult
impl Clone for RoundResult
Source§fn clone(&self) -> RoundResult
fn clone(&self) -> RoundResult
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 RoundResult
impl Debug for RoundResult
Source§impl Default for RoundResult
impl Default for RoundResult
Source§fn default() -> RoundResult
fn default() -> RoundResult
Returns the “default value” for a type. Read more
Source§impl<'a> MessageRead<'a> for RoundResult
impl<'a> MessageRead<'a> for RoundResult
Source§fn from_reader(
r: &mut BytesReader,
bytes: &'a [u8],
) -> Result<RoundResult, Error>
fn from_reader( r: &mut BytesReader, bytes: &'a [u8], ) -> Result<RoundResult, Error>
Constructs an instance of
Self
by reading from the given bytes
via the given reader. Read moreSource§impl MessageWrite for RoundResult
impl MessageWrite for RoundResult
Source§impl PartialEq for RoundResult
impl PartialEq for RoundResult
impl StructuralPartialEq for RoundResult
Auto Trait Implementations§
impl Freeze for RoundResult
impl RefUnwindSafe for RoundResult
impl Send for RoundResult
impl Sync for RoundResult
impl Unpin for RoundResult
impl UnwindSafe for RoundResult
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<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