pub struct DataDriftConfig {
pub rules: Vec<DriftRule>,
pub time_based: bool,
pub request_based: bool,
pub interval: u64,
pub seed: Option<u64>,
}Expand description
Data drift configuration
Fields§
§rules: Vec<DriftRule>Drift rules to apply
time_based: boolWhether to enable time-based drift
request_based: boolWhether to enable request-based drift
interval: u64Drift interval (seconds for time-based, requests for request-based)
seed: Option<u64>Random seed for reproducible drift
Implementations§
Source§impl DataDriftConfig
impl DataDriftConfig
Sourcepub fn with_time_based(self, interval_secs: u64) -> Self
pub fn with_time_based(self, interval_secs: u64) -> Self
Enable time-based drift
Sourcepub fn with_request_based(self, interval_requests: u64) -> Self
pub fn with_request_based(self, interval_requests: u64) -> Self
Enable request-based drift
Trait Implementations§
Source§impl Clone for DataDriftConfig
impl Clone for DataDriftConfig
Source§fn clone(&self) -> DataDriftConfig
fn clone(&self) -> DataDriftConfig
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 DataDriftConfig
impl Debug for DataDriftConfig
Source§impl Default for DataDriftConfig
impl Default for DataDriftConfig
Source§impl<'de> Deserialize<'de> for DataDriftConfig
impl<'de> Deserialize<'de> for DataDriftConfig
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
Auto Trait Implementations§
impl Freeze for DataDriftConfig
impl RefUnwindSafe for DataDriftConfig
impl Send for DataDriftConfig
impl Sync for DataDriftConfig
impl Unpin for DataDriftConfig
impl UnwindSafe for DataDriftConfig
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