#[non_exhaustive]pub struct TieredStorageRule {
pub rule: Option<Rule>,
/* private fields */
}Expand description
Rule to specify what data is stored in a storage tier.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rule: Option<Rule>Rules to specify what data is stored in this tier.
Implementations§
Source§impl TieredStorageRule
impl TieredStorageRule
pub fn new() -> Self
Sourcepub fn include_if_older_than(&self) -> Option<&Box<Duration>>
pub fn include_if_older_than(&self) -> Option<&Box<Duration>>
The value of rule
if it holds a IncludeIfOlderThan, None if the field is not set or
holds a different branch.
Sourcepub fn set_include_if_older_than<T: Into<Box<Duration>>>(self, v: T) -> Self
pub fn set_include_if_older_than<T: Into<Box<Duration>>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for TieredStorageRule
impl Clone for TieredStorageRule
Source§fn clone(&self) -> TieredStorageRule
fn clone(&self) -> TieredStorageRule
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 TieredStorageRule
impl Debug for TieredStorageRule
Source§impl Default for TieredStorageRule
impl Default for TieredStorageRule
Source§fn default() -> TieredStorageRule
fn default() -> TieredStorageRule
Returns the “default value” for a type. Read more
Source§impl Message for TieredStorageRule
impl Message for TieredStorageRule
Source§impl PartialEq for TieredStorageRule
impl PartialEq for TieredStorageRule
impl StructuralPartialEq for TieredStorageRule
Auto Trait Implementations§
impl Freeze for TieredStorageRule
impl RefUnwindSafe for TieredStorageRule
impl Send for TieredStorageRule
impl Sync for TieredStorageRule
impl Unpin for TieredStorageRule
impl UnsafeUnpin for TieredStorageRule
impl UnwindSafe for TieredStorageRule
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