pub struct MeasurandQuery<'a> {
pub base_quantity: &'a str,
pub direction: Option<Direction>,
pub phase_ref: Option<PhaseRef>,
pub aggregation: Option<Aggregation>,
pub location: Option<MeasurementLocation>,
pub accumulation: Option<Accumulation>,
}Expand description
Semantic point selector. Build with MeasurandQuery::base and narrow
with the qualifier builders.
Fields§
§base_quantity: &'a str§direction: Option<Direction>§phase_ref: Option<PhaseRef>§aggregation: Option<Aggregation>§location: Option<MeasurementLocation>§accumulation: Option<Accumulation>Implementations§
Source§impl<'a> MeasurandQuery<'a>
impl<'a> MeasurandQuery<'a>
Sourcepub fn base(base_quantity: &'a str) -> Self
pub fn base(base_quantity: &'a str) -> Self
Query by base quantity only (all qualifiers wildcard).
pub fn direction(self, d: Direction) -> Self
pub fn phase(self, p: PhaseRef) -> Self
pub fn aggregation(self, a: Aggregation) -> Self
pub fn location(self, l: MeasurementLocation) -> Self
pub fn accumulation(self, a: Accumulation) -> Self
Trait Implementations§
Source§impl<'a> Clone for MeasurandQuery<'a>
impl<'a> Clone for MeasurandQuery<'a>
Source§fn clone(&self) -> MeasurandQuery<'a>
fn clone(&self) -> MeasurandQuery<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for MeasurandQuery<'a>
impl<'a> Debug for MeasurandQuery<'a>
impl<'a> Copy for MeasurandQuery<'a>
Auto Trait Implementations§
impl<'a> Freeze for MeasurandQuery<'a>
impl<'a> RefUnwindSafe for MeasurandQuery<'a>
impl<'a> Send for MeasurandQuery<'a>
impl<'a> Sync for MeasurandQuery<'a>
impl<'a> Unpin for MeasurandQuery<'a>
impl<'a> UnsafeUnpin for MeasurandQuery<'a>
impl<'a> UnwindSafe for MeasurandQuery<'a>
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