#[non_exhaustive]pub struct AssetModelCompositeModel {
pub name: String,
pub description: Option<String>,
pub type: String,
pub properties: Option<Vec<AssetModelProperty>>,
pub id: Option<String>,
pub external_id: Option<String>,
}Expand description
Contains information about a composite model in an asset model. This object contains the asset property definitions that you define in the composite model.
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.name: StringThe name of the composite model.
description: Option<String>The description of the composite model.
type: StringThe type of the composite model. For alarm composite models, this type is AWS/ALARM.
properties: Option<Vec<AssetModelProperty>>The asset property definitions for this composite model.
id: Option<String>The ID of the asset model composite model.
external_id: Option<String>The external ID of the asset model composite model. For more information, see Using external IDs in the IoT SiteWise User Guide.
Implementations§
source§impl AssetModelCompositeModel
impl AssetModelCompositeModel
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the composite model.
sourcepub fn type(&self) -> &str
pub fn type(&self) -> &str
The type of the composite model. For alarm composite models, this type is AWS/ALARM.
sourcepub fn properties(&self) -> &[AssetModelProperty]
pub fn properties(&self) -> &[AssetModelProperty]
The asset property definitions for this composite 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 .properties.is_none().
sourcepub fn external_id(&self) -> Option<&str>
pub fn external_id(&self) -> Option<&str>
The external ID of the asset model composite model. For more information, see Using external IDs in the IoT SiteWise User Guide.
source§impl AssetModelCompositeModel
impl AssetModelCompositeModel
sourcepub fn builder() -> AssetModelCompositeModelBuilder
pub fn builder() -> AssetModelCompositeModelBuilder
Creates a new builder-style object to manufacture AssetModelCompositeModel.
Trait Implementations§
source§impl Clone for AssetModelCompositeModel
impl Clone for AssetModelCompositeModel
source§fn clone(&self) -> AssetModelCompositeModel
fn clone(&self) -> AssetModelCompositeModel
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AssetModelCompositeModel
impl Debug for AssetModelCompositeModel
source§impl PartialEq for AssetModelCompositeModel
impl PartialEq for AssetModelCompositeModel
source§fn eq(&self, other: &AssetModelCompositeModel) -> bool
fn eq(&self, other: &AssetModelCompositeModel) -> bool
self and other values to be equal, and is used
by ==.