Struct aws_sdk_iotsitewise::types::AssetModelProperty
source · #[non_exhaustive]pub struct AssetModelProperty {
pub id: Option<String>,
pub name: String,
pub data_type: PropertyDataType,
pub data_type_spec: Option<String>,
pub unit: Option<String>,
pub type: Option<PropertyType>,
pub path: Option<Vec<AssetModelPropertyPathSegment>>,
pub external_id: Option<String>,
}Expand description
Contains information about an asset model 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.id: Option<String>The ID of the asset model property.
-
If you are callling UpdateAssetModel to create a new property: You can specify its ID here, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. However, if you prefer to supply your own ID instead, you can specify it here in UUID format. If you specify your own ID, it must be globally unique.
-
If you are calling UpdateAssetModel to modify an existing property: This can be either the actual ID in UUID format, or else
externalId:followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
name: StringThe name of the asset model property.
data_type: PropertyDataTypeThe data type of the asset model property.
data_type_spec: Option<String>The data type of the structure for this property. This parameter exists on properties that have the STRUCT data type.
unit: Option<String>The unit of the asset model property, such as Newtons or RPM.
type: Option<PropertyType>The property type (see PropertyType).
path: Option<Vec<AssetModelPropertyPathSegment>>The structured path to the property from the root of the asset model.
external_id: Option<String>The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel operation. You can assign an external ID by specifying this value as part of a call to UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more information, see Using external IDs in the IoT SiteWise User Guide.
Implementations§
source§impl AssetModelProperty
impl AssetModelProperty
sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
The ID of the asset model property.
-
If you are callling UpdateAssetModel to create a new property: You can specify its ID here, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. However, if you prefer to supply your own ID instead, you can specify it here in UUID format. If you specify your own ID, it must be globally unique.
-
If you are calling UpdateAssetModel to modify an existing property: This can be either the actual ID in UUID format, or else
externalId:followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
sourcepub fn data_type(&self) -> &PropertyDataType
pub fn data_type(&self) -> &PropertyDataType
The data type of the asset model property.
sourcepub fn data_type_spec(&self) -> Option<&str>
pub fn data_type_spec(&self) -> Option<&str>
The data type of the structure for this property. This parameter exists on properties that have the STRUCT data type.
sourcepub fn unit(&self) -> Option<&str>
pub fn unit(&self) -> Option<&str>
The unit of the asset model property, such as Newtons or RPM.
sourcepub fn type(&self) -> Option<&PropertyType>
pub fn type(&self) -> Option<&PropertyType>
The property type (see PropertyType).
sourcepub fn path(&self) -> &[AssetModelPropertyPathSegment]
pub fn path(&self) -> &[AssetModelPropertyPathSegment]
The structured path to the property from the root of the asset model.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .path.is_none().
sourcepub fn external_id(&self) -> Option<&str>
pub fn external_id(&self) -> Option<&str>
The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel operation. You can assign an external ID by specifying this value as part of a call to UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more information, see Using external IDs in the IoT SiteWise User Guide.
source§impl AssetModelProperty
impl AssetModelProperty
sourcepub fn builder() -> AssetModelPropertyBuilder
pub fn builder() -> AssetModelPropertyBuilder
Creates a new builder-style object to manufacture AssetModelProperty.
Trait Implementations§
source§impl Clone for AssetModelProperty
impl Clone for AssetModelProperty
source§fn clone(&self) -> AssetModelProperty
fn clone(&self) -> AssetModelProperty
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AssetModelProperty
impl Debug for AssetModelProperty
source§impl PartialEq for AssetModelProperty
impl PartialEq for AssetModelProperty
source§fn eq(&self, other: &AssetModelProperty) -> bool
fn eq(&self, other: &AssetModelProperty) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AssetModelProperty
Auto Trait Implementations§
impl Freeze for AssetModelProperty
impl RefUnwindSafe for AssetModelProperty
impl Send for AssetModelProperty
impl Sync for AssetModelProperty
impl Unpin for AssetModelProperty
impl UnwindSafe for AssetModelProperty
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> 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