pub struct AsyncCacheAttributes {Show 15 fields
pub limit: TokenStream,
pub policy: TokenStream,
pub ttl: TokenStream,
pub custom_name: Option<String>,
pub max_memory: TokenStream,
pub tags: Vec<String>,
pub events: Vec<String>,
pub dependencies: Vec<String>,
pub invalidate_on: Option<Path>,
pub cache_if: Option<Path>,
pub frequency_weight: TokenStream,
pub window_ratio: TokenStream,
pub sketch_width: TokenStream,
pub sketch_depth: TokenStream,
pub decay_interval: TokenStream,
}Expand description
Parsed macro attributes for async caching
Fields§
§limit: TokenStream§policy: TokenStream§ttl: TokenStream§custom_name: Option<String>§max_memory: TokenStream§events: Vec<String>§dependencies: Vec<String>§invalidate_on: Option<Path>§cache_if: Option<Path>§frequency_weight: TokenStream§window_ratio: TokenStream§sketch_width: TokenStream§sketch_depth: TokenStream§decay_interval: TokenStreamImplementations§
Source§impl AsyncCacheAttributes
impl AsyncCacheAttributes
Sourcepub fn builder() -> AsyncCacheAttributesBuilder
pub fn builder() -> AsyncCacheAttributesBuilder
Create a new builder for AsyncCacheAttributes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsyncCacheAttributes
impl RefUnwindSafe for AsyncCacheAttributes
impl !Send for AsyncCacheAttributes
impl !Sync for AsyncCacheAttributes
impl Unpin for AsyncCacheAttributes
impl UnwindSafe for AsyncCacheAttributes
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