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
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]
impl StreamMetadata
pub fn builder() -> StreamMetadataBuilder
[src]
pub fn builder() -> StreamMetadataBuilder
Initializes a fresh stream metadata builder.
Trait Implementations
impl Debug for StreamMetadata
[src]
impl Debug for StreamMetadata
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for StreamMetadata
[src]
impl Default for StreamMetadata
fn default() -> StreamMetadata
[src]
fn default() -> StreamMetadata
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for StreamMetadata
impl Send for StreamMetadata
impl Sync for StreamMetadata
impl Sync for StreamMetadata