#[non_exhaustive]pub struct Product {
pub template: u16,
pub category: u8,
pub number: u8,
pub process: u8,
pub time_unit: u8,
pub forecast_time: i64,
pub surface: Surface,
pub second_surface: Surface,
pub statistics: Option<Statistics>,
}Expand description
What a field holds, and at which level and time: product definition template 4.0.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.template: u16The product definition template: 0, or 8 for a value over a time interval.
category: u8Parameter category (code table 4.1), such as 0 temperature or 2 momentum.
number: u8Parameter number within the category (code table 4.2).
process: u8Type of generating process (code table 4.3): 0 analysis, 2 forecast, and so on.
time_unit: u8Unit of the forecast time (code table 4.4): 0 minute, 1 hour, 2 day, 10 3 h, 11 6 h, 12 12 h, 13 second.
forecast_time: i64Forecast time in that unit, after the reference time.
surface: SurfaceThe first fixed surface.
second_surface: SurfaceThe second fixed surface (kind 255 when there is none).
statistics: Option<Statistics>Template 4.8’s time interval: the field is a statistic (such as an accumulation or an
average) from the forecast time to Statistics::end. None for template 4.0, a value at
one time.
Implementations§
Source§impl Product
impl Product
Sourcepub fn forecast_time_s(&self) -> Option<i64>
pub fn forecast_time_s(&self) -> Option<i64>
The forecast time in seconds, or None for a unit other than those listed on
Product::time_unit.