pub struct RetentionConfig {
pub time: Option<Duration>,
pub segment_size: Option<ByteSize>,
}
Fields§
§time: Option<Duration>
§segment_size: Option<ByteSize>
Trait Implementations§
source§impl Clone for RetentionConfig
impl Clone for RetentionConfig
source§fn clone(&self) -> RetentionConfig
fn clone(&self) -> RetentionConfig
Returns a copy 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 RetentionConfig
impl Debug for RetentionConfig
source§impl Default for RetentionConfig
impl Default for RetentionConfig
source§fn default() -> RetentionConfig
fn default() -> RetentionConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RetentionConfig
impl<'de> Deserialize<'de> for RetentionConfig
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RetentionConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<RetentionConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for RetentionConfig
impl PartialEq for RetentionConfig
source§fn eq(&self, other: &RetentionConfig) -> bool
fn eq(&self, other: &RetentionConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RetentionConfig
impl Serialize for RetentionConfig
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for RetentionConfig
impl StructuralPartialEq for RetentionConfig
Auto Trait Implementations§
impl Freeze for RetentionConfig
impl RefUnwindSafe for RetentionConfig
impl Send for RetentionConfig
impl Sync for RetentionConfig
impl Unpin for RetentionConfig
impl UnwindSafe for RetentionConfig
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.