pub struct AggregateRule {
pub from: String,
pub pattern: String,
pub sum: Option<String>,
pub count_as: Option<String>,
}Expand description
Aggregates values from a collected section using regex extraction.
Fields§
§from: StringName of the collected section to aggregate from.
pattern: StringRegex pattern to extract numeric values.
sum: Option<String>Name for the summed value.
count_as: Option<String>Name for the count of matching entries.
Trait Implementations§
Source§impl Clone for AggregateRule
impl Clone for AggregateRule
Source§fn clone(&self) -> AggregateRule
fn clone(&self) -> AggregateRule
Returns a duplicate 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 AggregateRule
impl Debug for AggregateRule
Source§impl<'de> Deserialize<'de> for AggregateRule
impl<'de> Deserialize<'de> for AggregateRule
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 AggregateRule
impl PartialEq for AggregateRule
Source§impl Serialize for AggregateRule
impl Serialize for AggregateRule
impl Eq for AggregateRule
impl StructuralPartialEq for AggregateRule
Auto Trait Implementations§
impl Freeze for AggregateRule
impl RefUnwindSafe for AggregateRule
impl Send for AggregateRule
impl Sync for AggregateRule
impl Unpin for AggregateRule
impl UnsafeUnpin for AggregateRule
impl UnwindSafe for AggregateRule
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