pub struct StreamSpec {
pub kind: StreamKind,
pub name: String,
pub subjects: Vec<String>,
pub max_age: Duration,
pub max_bytes: u64,
pub discard: DiscardPolicy,
pub work_queue: bool,
pub max_msgs_per_subject: Option<i64>,
}Fields§
§kind: StreamKind§name: String§subjects: Vec<String>§max_age: Duration§max_bytes: u64§discard: DiscardPolicy§work_queue: bool§max_msgs_per_subject: Option<i64>The per-subject message cap (max_msgs_per_subject), or None to set
none. Only the event stream has one, so one noisy module or event cannot
evict every other subject’s history; the five older streams leave it
unset and their emitted configuration is unchanged.
Trait Implementations§
Source§impl Clone for StreamSpec
impl Clone for StreamSpec
Source§impl Debug for StreamSpec
impl Debug for StreamSpec
impl Eq for StreamSpec
Source§impl PartialEq for StreamSpec
impl PartialEq for StreamSpec
impl StructuralPartialEq for StreamSpec
Auto Trait Implementations§
impl Freeze for StreamSpec
impl RefUnwindSafe for StreamSpec
impl Send for StreamSpec
impl Sync for StreamSpec
impl Unpin for StreamSpec
impl UnsafeUnpin for StreamSpec
impl UnwindSafe for StreamSpec
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