pub struct Retention {
pub max_age_s: Option<u64>,
pub max_count: Option<u64>,
}Expand description
Message retention of a channel (§8.2).
SPEC: the spec gives no bounds or semantics; this crate requires each set value ≥ 1 and
below 2^53, and lets null mean “no limit”.
Fields§
§max_age_s: Option<u64>Maximum message age in seconds.
max_count: Option<u64>Maximum number of messages kept.
Trait Implementations§
impl Copy for Retention
Source§impl<'de> Deserialize<'de> for Retention
impl<'de> Deserialize<'de> for Retention
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 Eq for Retention
impl StructuralPartialEq for Retention
Auto Trait Implementations§
impl Freeze for Retention
impl RefUnwindSafe for Retention
impl Send for Retention
impl Sync for Retention
impl Unpin for Retention
impl UnsafeUnpin for Retention
impl UnwindSafe for Retention
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