pub struct Config {
pub max_age: Option<String>,
pub max_bytes: Option<i32>,
pub max_msg_size: Option<i32>,
pub max_msgs: Option<i32>,
pub name: Option<String>,
pub num_replicas: Option<i32>,
pub retention: Option<String>,
pub storage: Option<String>,
pub subjects: Option<Vec<String>>,
}Fields§
§max_age: Option<String>MaxAge caps message age, e.g. "24h" or "7d"; "0" (default) is unlimited.
max_bytes: Option<i32>MaxBytes caps the stream’s total stored bytes; -1 (default) is unlimited.
max_msg_size: Option<i32>MaxMsgSize caps one message’s size in bytes; -1 (default) is the broker’s limit.
max_msgs: Option<i32>MaxMsgs caps the number of stored messages; -1 (default) is unlimited.
name: Option<String>Name is the stream name, unique within the org (alphanumeric, hyphens, underscores).
num_replicas: Option<i32>Replicas is the number of stream replicas (1–5); this plane runs 1.
retention: Option<String>Retention is the retention policy: limits (default), interest, or workqueue.
storage: Option<String>Storage is the storage backend: file (default) or memory.
subjects: Option<Vec<String>>Subjects are the org-relative subjects bound to this stream (wildcards supported). Default: the stream name.
Implementations§
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
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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