Struct google_fitness1::api::DataTypeField
source · pub struct DataTypeField {
pub format: Option<String>,
pub name: Option<String>,
pub optional: Option<bool>,
}
Expand description
In case of multi-dimensional data (such as an accelerometer with x, y, and z axes) each field represents one dimension. Each data type field has a unique name which identifies it. The field also defines the format of the data (int, float, etc.). This message is only instantiated in code and not used for wire comms or stored in any way.
This type is not used in any activity, and only used as part of another schema.
Fields§
§format: Option<String>
The different supported formats for each field in a data type.
name: Option<String>
Defines the name and format of data. Unlike data type names, field names are not namespaced, and only need to be unique within the data type.
optional: Option<bool>
no description provided
Trait Implementations§
source§impl Clone for DataTypeField
impl Clone for DataTypeField
source§fn clone(&self) -> DataTypeField
fn clone(&self) -> DataTypeField
Returns a copy 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 DataTypeField
impl Debug for DataTypeField
source§impl Default for DataTypeField
impl Default for DataTypeField
source§fn default() -> DataTypeField
fn default() -> DataTypeField
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DataTypeField
impl<'de> Deserialize<'de> for DataTypeField
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 Serialize for DataTypeField
impl Serialize for DataTypeField
impl Part for DataTypeField
Auto Trait Implementations§
impl RefUnwindSafe for DataTypeField
impl Send for DataTypeField
impl Sync for DataTypeField
impl Unpin for DataTypeField
impl UnwindSafe for DataTypeField
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