pub struct SegmentBasedPolicy {
pub time_in_seconds: u32,
}
Fields§
§time_in_seconds: u32
Implementations§
source§impl SegmentBasedPolicy
impl SegmentBasedPolicy
pub fn retention_secs(&self) -> u32
Trait Implementations§
source§impl Clone for SegmentBasedPolicy
impl Clone for SegmentBasedPolicy
source§fn clone(&self) -> SegmentBasedPolicy
fn clone(&self) -> SegmentBasedPolicy
Returns a copy 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 SegmentBasedPolicy
impl Debug for SegmentBasedPolicy
source§impl Decoder for SegmentBasedPolicy
impl Decoder for SegmentBasedPolicy
source§impl Default for SegmentBasedPolicy
impl Default for SegmentBasedPolicy
source§fn default() -> SegmentBasedPolicy
fn default() -> SegmentBasedPolicy
Returns the “default value” for a type. Read more
source§impl Encoder for SegmentBasedPolicy
impl Encoder for SegmentBasedPolicy
source§impl PartialEq for SegmentBasedPolicy
impl PartialEq for SegmentBasedPolicy
source§fn eq(&self, other: &SegmentBasedPolicy) -> bool
fn eq(&self, other: &SegmentBasedPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SegmentBasedPolicy
impl StructuralPartialEq for SegmentBasedPolicy
Auto Trait Implementations§
impl Freeze for SegmentBasedPolicy
impl RefUnwindSafe for SegmentBasedPolicy
impl Send for SegmentBasedPolicy
impl Sync for SegmentBasedPolicy
impl Unpin for SegmentBasedPolicy
impl UnwindSafe for SegmentBasedPolicy
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.