#[non_exhaustive]pub struct PropertyDefinitionResponse {
pub data_type: Option<DataType>,
pub is_time_series: bool,
pub is_required_in_entity: bool,
pub is_external_id: bool,
pub is_stored_externally: bool,
pub is_imported: bool,
pub is_final: bool,
pub is_inherited: bool,
pub default_value: Option<DataValue>,
pub configuration: Option<HashMap<String, String>>,
pub display_name: Option<String>,
}Expand description
An object that contains response data from a property definition request.
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.data_type: Option<DataType>An object that contains information about the data type.
is_time_series: boolA Boolean value that specifies whether the property consists of time series data.
is_required_in_entity: boolA Boolean value that specifies whether the property is required in an entity.
is_external_id: boolA Boolean value that specifies whether the property ID comes from an external data store.
is_stored_externally: boolA Boolean value that specifies whether the property is stored externally.
is_imported: boolA Boolean value that specifies whether the property definition is imported from an external data store.
is_final: boolA Boolean value that specifies whether the property definition can be updated.
is_inherited: boolA Boolean value that specifies whether the property definition is inherited from a parent entity.
default_value: Option<DataValue>An object that contains the default value.
configuration: Option<HashMap<String, String>>A mapping that specifies configuration information about the property.
display_name: Option<String>A friendly name for the property.
Implementations§
source§impl PropertyDefinitionResponse
impl PropertyDefinitionResponse
sourcepub fn data_type(&self) -> Option<&DataType>
pub fn data_type(&self) -> Option<&DataType>
An object that contains information about the data type.
sourcepub fn is_time_series(&self) -> bool
pub fn is_time_series(&self) -> bool
A Boolean value that specifies whether the property consists of time series data.
sourcepub fn is_required_in_entity(&self) -> bool
pub fn is_required_in_entity(&self) -> bool
A Boolean value that specifies whether the property is required in an entity.
sourcepub fn is_external_id(&self) -> bool
pub fn is_external_id(&self) -> bool
A Boolean value that specifies whether the property ID comes from an external data store.
sourcepub fn is_stored_externally(&self) -> bool
pub fn is_stored_externally(&self) -> bool
A Boolean value that specifies whether the property is stored externally.
sourcepub fn is_imported(&self) -> bool
pub fn is_imported(&self) -> bool
A Boolean value that specifies whether the property definition is imported from an external data store.
sourcepub fn is_final(&self) -> bool
pub fn is_final(&self) -> bool
A Boolean value that specifies whether the property definition can be updated.
sourcepub fn is_inherited(&self) -> bool
pub fn is_inherited(&self) -> bool
A Boolean value that specifies whether the property definition is inherited from a parent entity.
sourcepub fn default_value(&self) -> Option<&DataValue>
pub fn default_value(&self) -> Option<&DataValue>
An object that contains the default value.
sourcepub fn configuration(&self) -> Option<&HashMap<String, String>>
pub fn configuration(&self) -> Option<&HashMap<String, String>>
A mapping that specifies configuration information about the property.
sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
A friendly name for the property.
source§impl PropertyDefinitionResponse
impl PropertyDefinitionResponse
sourcepub fn builder() -> PropertyDefinitionResponseBuilder
pub fn builder() -> PropertyDefinitionResponseBuilder
Creates a new builder-style object to manufacture PropertyDefinitionResponse.
Trait Implementations§
source§impl Clone for PropertyDefinitionResponse
impl Clone for PropertyDefinitionResponse
source§fn clone(&self) -> PropertyDefinitionResponse
fn clone(&self) -> PropertyDefinitionResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PropertyDefinitionResponse
impl Debug for PropertyDefinitionResponse
source§impl PartialEq for PropertyDefinitionResponse
impl PartialEq for PropertyDefinitionResponse
source§fn eq(&self, other: &PropertyDefinitionResponse) -> bool
fn eq(&self, other: &PropertyDefinitionResponse) -> bool
self and other values to be equal, and is used
by ==.