pub struct DataEntry<'pdg> {Show 17 fields
pub pdgid: PdgId,
pub edition: String,
pub value_type: ValueType,
pub in_summary_table: bool,
pub confidence_level: Option<f64>,
pub limit_type: Option<LimitType>,
pub comment: Option<String>,
pub value: Option<f64>,
pub value_text: Option<String>,
pub error_positive: Option<f64>,
pub error_negative: Option<f64>,
pub scale_factor: Option<f64>,
pub unit_text: String,
pub display_value_text: String,
pub display_power_of_ten: isize,
pub display_in_percent: bool,
pub sort: Option<isize>,
/* private fields */
}Expand description
Numeric data row for a PDG identifier.
Data entries retain a link to the originating Pdg handle so
related measurements, footnotes, and text blocks can be loaded on demand.
Fields§
§pdgid: PdgIdPDG identifier for this data row.
edition: StringPDG edition for this value.
value_type: ValueTypeClassification of the value row.
in_summary_table: boolWhether the row appears in the PDG summary table.
confidence_level: Option<f64>Confidence level associated with the row.
limit_type: Option<LimitType>Limit or range type, when this row is not a simple central value.
comment: Option<String>PDG comment attached to the data row.
value: Option<f64>Parsed numeric central value.
value_text: Option<String>Raw value text when the value is not represented solely by DataEntry::value.
error_positive: Option<f64>Positive uncertainty on DataEntry::value.
error_negative: Option<f64>Negative uncertainty on DataEntry::value.
scale_factor: Option<f64>PDG scale factor applied to this value.
unit_text: StringUnit text from the PDG table.
display_value_text: StringDisplay-ready value text from the PDG table.
display_power_of_ten: isizePower-of-ten exponent used when displaying the value.
display_in_percent: boolWhether the display value should be interpreted as a percentage.
sort: Option<isize>Sort key used by the PDG tables.
Implementations§
Source§impl<'pdg> DataEntry<'pdg>
impl<'pdg> DataEntry<'pdg>
Sourcepub fn measurements(&self) -> PdgResult<Vec<PdgMeasurement>>
pub fn measurements(&self) -> PdgResult<Vec<PdgMeasurement>>
Loads measurements supporting this data entry.
§Errors
Returns a database error if the measurement query cannot be executed.