Enum EstimateSource
#[non_exhaustive]pub enum EstimateSource {
Checkpoint {
step: u64,
reference: String,
},
Recipe {
json: String,
},
}Expand description
What an EstimateRecord evaluated: the exact checkpoint or recipe.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Checkpoint
The checkpoint evaluated: its step and reference.
Fields
Recipe
The recipe replayed, as its exact compact atune.recipe JSON.
Trait Implementations§
§impl Clone for EstimateSource
impl Clone for EstimateSource
§fn clone(&self) -> EstimateSource
fn clone(&self) -> EstimateSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for EstimateSource
impl Debug for EstimateSource
§impl<'de> Deserialize<'de> for EstimateSource
impl<'de> Deserialize<'de> for EstimateSource
§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
impl Eq for EstimateSource
§impl PartialEq for EstimateSource
impl PartialEq for EstimateSource
§impl Serialize for EstimateSource
impl Serialize for EstimateSource
impl StructuralPartialEq for EstimateSource
Auto Trait Implementations§
impl Freeze for EstimateSource
impl RefUnwindSafe for EstimateSource
impl Send for EstimateSource
impl Sync for EstimateSource
impl Unpin for EstimateSource
impl UnsafeUnpin for EstimateSource
impl UnwindSafe for EstimateSource
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