pub struct PrimitiveProperty {
pub list: Option<bool>,
pub unit: Option<UnitReference>,
pub max_list_size: Option<i32>,
}Expand description
Description of a primitive property
Fields§
§list: Option<bool>Whether this is a list or not.
unit: Option<UnitReference>The unit of the data stored in this property. Can only be assigned to types float32 or float64, external ID needs to match with a unit in the Cognite unit catalog.
max_list_size: Option<i32>Maximum allowed length of the list.
Trait Implementations§
Source§impl Clone for PrimitiveProperty
impl Clone for PrimitiveProperty
Source§fn clone(&self) -> PrimitiveProperty
fn clone(&self) -> PrimitiveProperty
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 PrimitiveProperty
impl Debug for PrimitiveProperty
Source§impl Default for PrimitiveProperty
impl Default for PrimitiveProperty
Source§fn default() -> PrimitiveProperty
fn default() -> PrimitiveProperty
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrimitiveProperty
impl<'de> Deserialize<'de> for PrimitiveProperty
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
Auto Trait Implementations§
impl Freeze for PrimitiveProperty
impl RefUnwindSafe for PrimitiveProperty
impl Send for PrimitiveProperty
impl Sync for PrimitiveProperty
impl Unpin for PrimitiveProperty
impl UnwindSafe for PrimitiveProperty
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