Struct mod_memoize::MemoizeParams
source · pub struct MemoizeParams {
pub ttl: Duration,
pub capacity: usize,
pub name: String,
}
Fields§
§ttl: Duration
§capacity: usize
§name: String
Trait Implementations§
source§impl Clone for MemoizeParams
impl Clone for MemoizeParams
source§fn clone(&self) -> MemoizeParams
fn clone(&self) -> MemoizeParams
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 MemoizeParams
impl Debug for MemoizeParams
source§impl<'de> Deserialize<'de> for MemoizeParams
impl<'de> Deserialize<'de> for MemoizeParams
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 MemoizeParams
impl PartialEq for MemoizeParams
source§fn eq(&self, other: &MemoizeParams) -> bool
fn eq(&self, other: &MemoizeParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemoizeParams
impl Serialize for MemoizeParams
impl Eq for MemoizeParams
impl StructuralPartialEq for MemoizeParams
Auto Trait Implementations§
impl Freeze for MemoizeParams
impl RefUnwindSafe for MemoizeParams
impl Send for MemoizeParams
impl Sync for MemoizeParams
impl Unpin for MemoizeParams
impl UnwindSafe for MemoizeParams
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