#[non_exhaustive]pub struct VariableDescriptor {
pub api_name: String,
pub variable: Variable,
pub altitude: Option<i16>,
pub pressure_level: Option<i16>,
pub depth: Option<i16>,
pub depth_to: Option<i16>,
pub aggregation: Option<Aggregation>,
pub model: Option<String>,
pub previous_day: Option<u8>,
pub ensemble_member: Option<u16>,
}Expand description
Decomposed variable identity inspired by Open-Meteo’s FlatBuffers schema.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.api_name: StringOriginal flattened JSON/API name.
variable: VariableLogical variable.
altitude: Option<i16>Altitude in metres, where applicable.
pressure_level: Option<i16>Pressure level in hPa, where applicable.
depth: Option<i16>Soil depth start in centimetres, where applicable.
depth_to: Option<i16>Soil depth end in centimetres, where applicable.
aggregation: Option<Aggregation>Aggregation suffix, where applicable.
model: Option<String>Model token stripped from model-suffixed JSON columns, where applicable.
previous_day: Option<u8>Previous-runs day offset for API names ending in _previous_dayN.
ensemble_member: Option<u16>Ensemble member number for API names containing _memberNN.
Trait Implementations§
Source§impl Clone for VariableDescriptor
impl Clone for VariableDescriptor
Source§fn clone(&self) -> VariableDescriptor
fn clone(&self) -> VariableDescriptor
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 VariableDescriptor
impl Debug for VariableDescriptor
Source§impl Hash for VariableDescriptor
impl Hash for VariableDescriptor
Source§impl PartialEq for VariableDescriptor
impl PartialEq for VariableDescriptor
Source§impl Serialize for VariableDescriptor
impl Serialize for VariableDescriptor
impl Eq for VariableDescriptor
impl StructuralPartialEq for VariableDescriptor
Auto Trait Implementations§
impl Freeze for VariableDescriptor
impl RefUnwindSafe for VariableDescriptor
impl Send for VariableDescriptor
impl Sync for VariableDescriptor
impl Unpin for VariableDescriptor
impl UnsafeUnpin for VariableDescriptor
impl UnwindSafe for VariableDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.