pub struct ProofHistogramResponse {
pub bin_size: i64,
pub data: Vec<Value>,
pub end_time: String,
pub start_time: String,
}Expand description
ProofHistogramResponse : Response for producing proof histograms.
Fields§
§bin_size: i64The bin size in seconds.
data: Vec<Value>A list of dictionaries in the format: { 'bin': '2021-01-01T00:00:00Z', 'ready': 2, 'failed': 1, 'in_progress': 3, 'queued': 4, } where ‘bin’ is an ISO8601 timestamp indicating the start of the bin, and proof status keys (e.g. ‘ready’) indicating the number of proofs with that status in the bin.
end_time: StringThe end of the histogram in timezone-aware ISO8601 format.
start_time: StringThe start of the histogram in timezone-aware ISO8601 format.
Implementations§
Trait Implementations§
Source§impl Clone for ProofHistogramResponse
impl Clone for ProofHistogramResponse
Source§fn clone(&self) -> ProofHistogramResponse
fn clone(&self) -> ProofHistogramResponse
Returns a duplicate 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 ProofHistogramResponse
impl Debug for ProofHistogramResponse
Source§impl Default for ProofHistogramResponse
impl Default for ProofHistogramResponse
Source§fn default() -> ProofHistogramResponse
fn default() -> ProofHistogramResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProofHistogramResponse
impl<'de> Deserialize<'de> for ProofHistogramResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProofHistogramResponse
impl PartialEq for ProofHistogramResponse
Source§impl Serialize for ProofHistogramResponse
impl Serialize for ProofHistogramResponse
impl StructuralPartialEq for ProofHistogramResponse
Auto Trait Implementations§
impl Freeze for ProofHistogramResponse
impl RefUnwindSafe for ProofHistogramResponse
impl Send for ProofHistogramResponse
impl Sync for ProofHistogramResponse
impl Unpin for ProofHistogramResponse
impl UnwindSafe for ProofHistogramResponse
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