pub struct CommonAttributes {
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
Helper struct to group common attributes and avoid excessive function parameters
Fields§
§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§
Trait Implementations§
Source§impl Default for CommonAttributes
impl Default for CommonAttributes
Source§fn default() -> CommonAttributes
fn default() -> CommonAttributes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommonAttributes
impl RefUnwindSafe for CommonAttributes
impl !Send for CommonAttributes
impl !Sync for CommonAttributes
impl Unpin for CommonAttributes
impl UnwindSafe for CommonAttributes
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