pub struct AnomalyPattern {
pub pattern_id: String,
pub feature_vector: Vec<f32>,
pub anomaly_score: f32,
pub pattern_type: AnomalyType,
}Expand description
Caller-supplied anomaly-pattern record from an external model.
Fields§
§pattern_id: String§feature_vector: Vec<f32>§anomaly_score: f32§pattern_type: AnomalyTypeImplementations§
Source§impl AnomalyPattern
impl AnomalyPattern
pub fn validate(&self) -> Result<(), MlRecordValidationError>
Trait Implementations§
Source§impl Clone for AnomalyPattern
impl Clone for AnomalyPattern
Source§fn clone(&self) -> AnomalyPattern
fn clone(&self) -> AnomalyPattern
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 moreSource§impl Debug for AnomalyPattern
impl Debug for AnomalyPattern
Source§impl<'de> Deserialize<'de> for AnomalyPattern
impl<'de> Deserialize<'de> for AnomalyPattern
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 AnomalyPattern
impl PartialEq for AnomalyPattern
Source§impl Serialize for AnomalyPattern
impl Serialize for AnomalyPattern
impl StructuralPartialEq for AnomalyPattern
Auto Trait Implementations§
impl Freeze for AnomalyPattern
impl RefUnwindSafe for AnomalyPattern
impl Send for AnomalyPattern
impl Sync for AnomalyPattern
impl Unpin for AnomalyPattern
impl UnsafeUnpin for AnomalyPattern
impl UnwindSafe for AnomalyPattern
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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