Struct google_pubsublite1::api::RetentionConfig[][src]

pub struct RetentionConfig {
    pub per_partition_bytes: Option<String>,
    pub period: Option<String>,
}

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<String>

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<String>

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

impl Clone for RetentionConfig[src]

impl Debug for RetentionConfig[src]

impl Default for RetentionConfig[src]

impl<'de> Deserialize<'de> for RetentionConfig[src]

impl Part for RetentionConfig[src]

impl Serialize for RetentionConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.