pub struct TemporalAttributeConfigBuilder { /* private fields */ }Expand description
Builder for temporal attribute configuration.
Implementations§
Source§impl TemporalAttributeConfigBuilder
impl TemporalAttributeConfigBuilder
Sourcepub fn closed_probability(self, prob: f64) -> Self
pub fn closed_probability(self, prob: f64) -> Self
Sets the probability of closed validity.
Sourcepub fn avg_validity_days(self, days: u32) -> Self
pub fn avg_validity_days(self, days: u32) -> Self
Sets the average validity duration in days.
Sourcepub fn avg_recording_delay(self, seconds: u32) -> Self
pub fn avg_recording_delay(self, seconds: u32) -> Self
Sets the average recording delay in seconds.
Sourcepub fn allow_backdating(self, prob: f64) -> Self
pub fn allow_backdating(self, prob: f64) -> Self
Enables backdating with the given probability.
Sourcepub fn with_version_chains(self, avg_versions: f64) -> Self
pub fn with_version_chains(self, avg_versions: f64) -> Self
Enables version chain generation.
Sourcepub fn build(self) -> TemporalAttributeConfig
pub fn build(self) -> TemporalAttributeConfig
Builds the configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TemporalAttributeConfigBuilder
impl RefUnwindSafe for TemporalAttributeConfigBuilder
impl Send for TemporalAttributeConfigBuilder
impl Sync for TemporalAttributeConfigBuilder
impl Unpin for TemporalAttributeConfigBuilder
impl UnwindSafe for TemporalAttributeConfigBuilder
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