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

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

The maximum number of events allowed in the stream.

The maximum age of events allowed in the stream.

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

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

The access control list for the stream.

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

Methods

impl StreamMetadata
[src]

Initializes a fresh stream metadata builder.

Trait Implementations

impl Debug for StreamMetadata
[src]

Formats the value using the given formatter. Read more

impl Default for StreamMetadata
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations