#[non_exhaustive]pub struct ScalarMeta {
pub unit: Option<Option<Vec<Option<Unit>>>>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Metadata for the resulting numerical values.
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.unit: Option<Option<Vec<Option<Unit>>>>
Detailed information about the unit.
First element describes the “primary unit” (for example, bytes
in bytes per second
).
The second element describes the “per unit” (for example, second
in bytes per second
).
If the second element is not present, the API returns null.
additional_properties: BTreeMap<String, Value>
Implementations§
Trait Implementations§
Source§impl Clone for ScalarMeta
impl Clone for ScalarMeta
Source§fn clone(&self) -> ScalarMeta
fn clone(&self) -> ScalarMeta
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 ScalarMeta
impl Debug for ScalarMeta
Source§impl Default for ScalarMeta
impl Default for ScalarMeta
Source§impl<'de> Deserialize<'de> for ScalarMeta
impl<'de> Deserialize<'de> for ScalarMeta
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ScalarMeta
impl PartialEq for ScalarMeta
Source§impl Serialize for ScalarMeta
impl Serialize for ScalarMeta
impl StructuralPartialEq for ScalarMeta
Auto Trait Implementations§
impl Freeze for ScalarMeta
impl RefUnwindSafe for ScalarMeta
impl Send for ScalarMeta
impl Sync for ScalarMeta
impl Unpin for ScalarMeta
impl UnwindSafe for ScalarMeta
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