Struct gapi_grpc::google::cloud::pubsublite::v1::topic::RetentionConfig[][src]

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

The settings for a topic’s message retention.

Fields

per_partition_bytes: 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

impl Clone for RetentionConfig[src]

impl Debug for RetentionConfig[src]

impl Default for RetentionConfig[src]

impl Message for RetentionConfig[src]

impl PartialEq<RetentionConfig> for RetentionConfig[src]

impl StructuralPartialEq for RetentionConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for RetentionConfig

impl Send for RetentionConfig

impl Sync for RetentionConfig

impl Unpin for RetentionConfig

impl UnwindSafe for RetentionConfig

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]