pub struct MeasurementSpec {
pub id: &'static str,
pub label: &'static str,
pub group: MeasurementGroup,
pub lo: u32,
pub hi: u32,
pub input: MeasurementInputUnit,
pub uses: u16,
pub hint: &'static str,
}Expand description
One curated measurement the person may declare.
Fields§
§id: &'static str§label: &'static str§group: MeasurementGroup§lo: u32§hi: u32§input: MeasurementInputUnit§uses: u16§hint: &'static strImplementations§
Source§impl MeasurementSpec
impl MeasurementSpec
Sourcepub fn uses_list(self) -> Vec<MeasurementUse>
pub fn uses_list(self) -> Vec<MeasurementUse>
uses.
Sourcepub fn serves(self, use_: MeasurementUse) -> bool
pub fn serves(self, use_: MeasurementUse) -> bool
when it serves the use.
Sourcepub fn store_unit(self) -> &'static str
pub fn store_unit(self) -> &'static str
Stores unit.
Trait Implementations§
Source§impl Clone for MeasurementSpec
impl Clone for MeasurementSpec
impl Copy for MeasurementSpec
Source§impl Debug for MeasurementSpec
impl Debug for MeasurementSpec
impl Eq for MeasurementSpec
Source§impl PartialEq for MeasurementSpec
impl PartialEq for MeasurementSpec
impl StructuralPartialEq for MeasurementSpec
Auto Trait Implementations§
impl Freeze for MeasurementSpec
impl RefUnwindSafe for MeasurementSpec
impl Send for MeasurementSpec
impl Sync for MeasurementSpec
impl Unpin for MeasurementSpec
impl UnsafeUnpin for MeasurementSpec
impl UnwindSafe for MeasurementSpec
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