pub struct RetentionConfig {
pub per_partition_bytes: Option<i64>,
pub period: Option<Duration>,
}Expand description
The settings for a topic’s message retention.
This type is not used in any activity, and only used as part of another schema.
Fields§
§per_partition_bytes: Option<i64>The provisioned storage, in bytes, per partition. If the number of bytes stored in any of the topic’s partitions grows beyond this value, older messages will be dropped to make room for newer ones, regardless of the value of period.
period: Option<Duration>How long a published message is retained. If unset, messages will be retained as long as the bytes retained for each partition is below per_partition_bytes.
Trait Implementations§
Source§impl Clone for RetentionConfig
impl Clone for RetentionConfig
Source§fn clone(&self) -> RetentionConfig
fn clone(&self) -> RetentionConfig
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 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<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
Source§impl Serialize for RetentionConfig
impl Serialize for RetentionConfig
impl Part 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