#[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
impl StructuralPartialEq for PropertyDefinitionResponse
Auto Trait Implementations§
impl Freeze for PropertyDefinitionResponse
impl RefUnwindSafe for PropertyDefinitionResponse
impl Send for PropertyDefinitionResponse
impl Sync for PropertyDefinitionResponse
impl Unpin for PropertyDefinitionResponse
impl UnwindSafe for PropertyDefinitionResponse
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more