#[non_exhaustive]pub struct GcRule {
pub rule: Option<Rule>,
/* private fields */
}Expand description
Rule for determining which cells to delete during garbage collection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rule: Option<Rule>Garbage collection rules.
Implementations§
Source§impl GcRule
impl GcRule
pub fn new() -> Self
Sourcepub fn set_rule<T: Into<Option<Rule>>>(self, v: T) -> Self
pub fn set_rule<T: Into<Option<Rule>>>(self, v: T) -> Self
Sets the value of rule.
Note that all the setters affecting rule are mutually
exclusive.
Sourcepub fn max_num_versions(&self) -> Option<&i32>
pub fn max_num_versions(&self) -> Option<&i32>
The value of rule
if it holds a MaxNumVersions, None if the field is not set or
holds a different branch.
Sourcepub fn set_max_num_versions<T: Into<i32>>(self, v: T) -> Self
pub fn set_max_num_versions<T: Into<i32>>(self, v: T) -> Self
Sets the value of rule
to hold a MaxNumVersions.
Note that all the setters affecting rule are
mutually exclusive.
Sourcepub fn max_age(&self) -> Option<&Box<Duration>>
pub fn max_age(&self) -> Option<&Box<Duration>>
The value of rule
if it holds a MaxAge, None if the field is not set or
holds a different branch.
Sourcepub fn set_max_age<T: Into<Box<Duration>>>(self, v: T) -> Self
pub fn set_max_age<T: Into<Box<Duration>>>(self, v: T) -> Self
Sets the value of rule
to hold a MaxAge.
Note that all the setters affecting rule are
mutually exclusive.
Sourcepub fn intersection(&self) -> Option<&Box<Intersection>>
pub fn intersection(&self) -> Option<&Box<Intersection>>
The value of rule
if it holds a Intersection, None if the field is not set or
holds a different branch.
Sourcepub fn set_intersection<T: Into<Box<Intersection>>>(self, v: T) -> Self
pub fn set_intersection<T: Into<Box<Intersection>>>(self, v: T) -> Self
Sets the value of rule
to hold a Intersection.
Note that all the setters affecting rule are
mutually exclusive.