[][src]Struct eventstore::types::StreamMetadata

pub struct StreamMetadata {
    pub max_count: Option<u64>,
    pub max_age: Option<Duration>,
    pub truncate_before: Option<u64>,
    pub cache_control: Option<Duration>,
    pub acl: StreamAcl,
    pub custom_properties: HashMap<String, Value>,
}

Represents stream metadata with strongly types properties for system values and a dictionary-like interface for custom values.

Fields

max_count: Option<u64>

The maximum number of events allowed in the stream.

max_age: Option<Duration>

The maximum age of events allowed in the stream.

truncate_before: Option<u64>

The event number from which previous events can be scavenged. This is used to implement soft-deletion of streams.

cache_control: Option<Duration>

The amount of time for which the stream head is cacheable.

acl: StreamAcl

The access control list for the stream.

custom_properties: HashMap<String, Value>

An enumerable of key-value pairs of keys to JSON value for user-provided metadata.

Methods

impl StreamMetadata[src]

pub fn builder() -> StreamMetadataBuilder[src]

Initializes a fresh stream metadata builder.

Trait Implementations

impl Clone for StreamMetadata[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for StreamMetadata[src]

impl Debug for StreamMetadata[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T