pub struct SyncCacheAttributes {Show 16 fields
pub limit: TokenStream,
pub policy: TokenStream,
pub ttl: TokenStream,
pub scope: 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 sync caching
Fields§
§limit: TokenStream§policy: TokenStream§ttl: TokenStream§scope: 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 SyncCacheAttributes
impl SyncCacheAttributes
Sourcepub fn builder() -> SyncCacheAttributesBuilder
pub fn builder() -> SyncCacheAttributesBuilder
Create a new builder for SyncCacheAttributes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SyncCacheAttributes
impl RefUnwindSafe for SyncCacheAttributes
impl !Send for SyncCacheAttributes
impl !Sync for SyncCacheAttributes
impl Unpin for SyncCacheAttributes
impl UnwindSafe for SyncCacheAttributes
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