Struct influxdb2::models::retention_rule::RetentionRule
source · [−]pub struct RetentionRule {
pub type: Type,
pub every_seconds: i32,
pub shard_group_duration_seconds: Option<i64>,
}
Expand description
RetentionRule
Fields
type: Type
Expiry
every_seconds: i32
Duration in seconds for how long data will be kept in the database. 0 means infinite.
shard_group_duration_seconds: Option<i64>
Shard duration measured in seconds.
Implementations
Trait Implementations
sourceimpl Clone for RetentionRule
impl Clone for RetentionRule
sourcefn clone(&self) -> RetentionRule
fn clone(&self) -> RetentionRule
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RetentionRule
impl Debug for RetentionRule
sourceimpl<'de> Deserialize<'de> for RetentionRule
impl<'de> Deserialize<'de> for RetentionRule
sourcefn 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
sourceimpl PartialEq<RetentionRule> for RetentionRule
impl PartialEq<RetentionRule> for RetentionRule
sourcefn eq(&self, other: &RetentionRule) -> bool
fn eq(&self, other: &RetentionRule) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RetentionRule) -> bool
fn ne(&self, other: &RetentionRule) -> bool
This method tests for !=
.
sourceimpl Serialize for RetentionRule
impl Serialize for RetentionRule
impl Copy for RetentionRule
impl StructuralPartialEq for RetentionRule
Auto Trait Implementations
impl RefUnwindSafe for RetentionRule
impl Send for RetentionRule
impl Sync for RetentionRule
impl Unpin for RetentionRule
impl UnwindSafe for RetentionRule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more