#[non_exhaustive]pub struct PropertyDefinitionRequest {
pub data_type: Option<DataType>,
pub is_required_in_entity: Option<bool>,
pub is_external_id: Option<bool>,
pub is_stored_externally: Option<bool>,
pub is_time_series: Option<bool>,
pub default_value: Option<DataValue>,
pub configuration: Option<HashMap<String, String>>,
pub display_name: Option<String>,
}Expand description
An object that sets information about a property.
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_required_in_entity: Option<bool>A Boolean value that specifies whether the property is required.
is_external_id: Option<bool>A Boolean value that specifies whether the property ID comes from an external data store.
is_stored_externally: Option<bool>A Boolean value that specifies whether the property is stored externally.
is_time_series: Option<bool>A Boolean value that specifies whether the property consists of time series data.
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. Use this field to specify information that you read from and write to an external source.
display_name: Option<String>A friendly name for the property.
Implementations§
source§impl PropertyDefinitionRequest
impl PropertyDefinitionRequest
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_required_in_entity(&self) -> Option<bool>
pub fn is_required_in_entity(&self) -> Option<bool>
A Boolean value that specifies whether the property is required.
sourcepub fn is_external_id(&self) -> Option<bool>
pub fn is_external_id(&self) -> Option<bool>
A Boolean value that specifies whether the property ID comes from an external data store.
sourcepub fn is_stored_externally(&self) -> Option<bool>
pub fn is_stored_externally(&self) -> Option<bool>
A Boolean value that specifies whether the property is stored externally.
sourcepub fn is_time_series(&self) -> Option<bool>
pub fn is_time_series(&self) -> Option<bool>
A Boolean value that specifies whether the property consists of time series data.
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. Use this field to specify information that you read from and write to an external source.
sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
A friendly name for the property.
source§impl PropertyDefinitionRequest
impl PropertyDefinitionRequest
sourcepub fn builder() -> PropertyDefinitionRequestBuilder
pub fn builder() -> PropertyDefinitionRequestBuilder
Creates a new builder-style object to manufacture PropertyDefinitionRequest.
Trait Implementations§
source§impl Clone for PropertyDefinitionRequest
impl Clone for PropertyDefinitionRequest
source§fn clone(&self) -> PropertyDefinitionRequest
fn clone(&self) -> PropertyDefinitionRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PropertyDefinitionRequest
impl Debug for PropertyDefinitionRequest
impl StructuralPartialEq for PropertyDefinitionRequest
Auto Trait Implementations§
impl Freeze for PropertyDefinitionRequest
impl RefUnwindSafe for PropertyDefinitionRequest
impl Send for PropertyDefinitionRequest
impl Sync for PropertyDefinitionRequest
impl Unpin for PropertyDefinitionRequest
impl UnwindSafe for PropertyDefinitionRequest
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