Struct PredictorSpec
pub struct PredictorSpec {
pub kind: PredictorKind,
pub window: Option<u8>,
pub alpha: Option<f64>,
pub params: Vec<(String, PredictorParamValue)>,
pub version: Option<u64>,
}Expand description
Predictor configuration declared inline on a field.
Fields§
§kind: PredictorKind§window: Option<u8>§alpha: Option<f64>Smoothing factor for the built-in ewma predictor, in (0, 1].
params: Vec<(String, PredictorParamValue)>Ordered custom-predictor parameters; insertion order is preserved.
version: Option<u64>Optional custom-predictor version, folded into schema fingerprint.
Trait Implementations§
§impl Clone for PredictorSpec
impl Clone for PredictorSpec
§fn clone(&self) -> PredictorSpec
fn clone(&self) -> PredictorSpec
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 PredictorSpec
impl Debug for PredictorSpec
impl Eq for PredictorSpec
Available on crate feature
alloc only.§impl PartialEq for PredictorSpec
impl PartialEq for PredictorSpec
impl StructuralPartialEq for PredictorSpec
Auto Trait Implementations§
impl Freeze for PredictorSpec
impl RefUnwindSafe for PredictorSpec
impl Send for PredictorSpec
impl Sync for PredictorSpec
impl Unpin for PredictorSpec
impl UnsafeUnpin for PredictorSpec
impl UnwindSafe for PredictorSpec
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.