pub struct SegmentBasedPolicy {
pub time_in_seconds: u32,
}Fields§
§time_in_seconds: u32Implementations§
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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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<'de> Deserialize<'de> for SegmentBasedPolicy
impl<'de> Deserialize<'de> for SegmentBasedPolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SegmentBasedPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SegmentBasedPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encoder for SegmentBasedPolicy
impl Encoder for SegmentBasedPolicy
impl Eq for SegmentBasedPolicy
Source§impl PartialEq for SegmentBasedPolicy
impl PartialEq for SegmentBasedPolicy
Source§impl Serialize for SegmentBasedPolicy
impl Serialize for SegmentBasedPolicy
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 UnsafeUnpin for SegmentBasedPolicy
impl UnwindSafe for SegmentBasedPolicy
Blanket Implementations§
impl<T> AsyncConnector for T
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.