pub struct StreamConfig {
pub name: String,
pub description: Option<String>,
pub subjects: Vec<String>,
pub retention: RetentionPolicy,
pub max_messages: i64,
pub max_bytes: i64,
pub max_age: Duration,
pub max_message_size: i32,
pub storage: StorageType,
pub replicas: usize,
}Expand description
Stream configuration.
Fields§
§name: StringStream name.
description: Option<String>Stream description.
subjects: Vec<String>Subjects this stream listens on.
retention: RetentionPolicyRetention policy.
max_messages: i64Maximum messages.
max_bytes: i64Maximum bytes.
max_age: DurationMaximum age.
max_message_size: i32Maximum message size.
storage: StorageTypeStorage type.
replicas: usizeNumber of replicas.
Trait Implementations§
Source§impl Clone for StreamConfig
impl Clone for StreamConfig
Source§fn clone(&self) -> StreamConfig
fn clone(&self) -> StreamConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StreamConfig
impl RefUnwindSafe for StreamConfig
impl Send for StreamConfig
impl Sync for StreamConfig
impl Unpin for StreamConfig
impl UnwindSafe for StreamConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more