pub struct StreamPolicy {
pub durability_mode: String,
pub retention_maxlen: u64,
pub retention_ttl_ms: Option<u64>,
}Expand description
Stream durability and retention configuration.
Fields§
§durability_mode: StringDurability mode: “buffered” (default) or “durable”.
retention_maxlen: u64Maximum number of frames to retain per stream.
retention_ttl_ms: Option<u64>Stream retention TTL in ms after closure.
Trait Implementations§
Source§impl Clone for StreamPolicy
impl Clone for StreamPolicy
Source§fn clone(&self) -> StreamPolicy
fn clone(&self) -> StreamPolicy
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 moreSource§impl Debug for StreamPolicy
impl Debug for StreamPolicy
Source§impl<'de> Deserialize<'de> for StreamPolicy
impl<'de> Deserialize<'de> for StreamPolicy
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
Source§impl PartialEq for StreamPolicy
impl PartialEq for StreamPolicy
Source§impl Serialize for StreamPolicy
impl Serialize for StreamPolicy
impl StructuralPartialEq for StreamPolicy
Auto Trait Implementations§
impl Freeze for StreamPolicy
impl RefUnwindSafe for StreamPolicy
impl Send for StreamPolicy
impl Sync for StreamPolicy
impl Unpin for StreamPolicy
impl UnsafeUnpin for StreamPolicy
impl UnwindSafe for StreamPolicy
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