Struct async_nats::jetstream::object_store::Config
source · pub struct Config {
pub bucket: String,
pub description: Option<String>,
pub max_age: Duration,
pub storage: StorageType,
pub num_replicas: usize,
}Expand description
Configuration values for object store buckets.
Fields§
§bucket: StringName of the storage bucket.
description: Option<String>A short description of the purpose of this storage bucket.
max_age: DurationMaximum age of any value in the bucket, expressed in nanoseconds
storage: StorageTypeThe type of storage backend, File (default) and Memory
num_replicas: usizeHow many replicas to keep for each value in a cluster, maximum 5.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more