pub struct StreamCfg {
pub retention: StreamRetention,
}Expand description
One declared event stream.
Fields§
§retention: StreamRetentionImplementations§
Source§impl StreamCfg
impl StreamCfg
pub fn max_events(&self) -> u64
pub fn max_age_ms(&self) -> Option<u64>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StreamCfg
impl<'de> Deserialize<'de> for StreamCfg
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 StreamCfg
Auto Trait Implementations§
impl Freeze for StreamCfg
impl RefUnwindSafe for StreamCfg
impl Send for StreamCfg
impl Sync for StreamCfg
impl Unpin for StreamCfg
impl UnsafeUnpin for StreamCfg
impl UnwindSafe for StreamCfg
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