#[non_exhaustive]pub struct AssetModelCompositeModelSummary {
pub id: String,
pub external_id: Option<String>,
pub name: String,
pub type: String,
pub description: Option<String>,
pub path: Option<Vec<AssetModelCompositeModelPathSegment>>,
}Expand description
Contains a summary of 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.id: StringThe ID of the the composite model that this summary describes..
external_id: Option<String>The external ID of a composite model on this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
name: StringThe name of the the composite model that this summary describes..
type: StringThe type of asset model.
-
ASSET_MODEL – (default) An asset model that you can use to create assets. Can't be included as a component in another asset model.
-
COMPONENT_MODEL – A reusable component that you can include in the composite models of other asset models. You can't create assets directly from this type of asset model.
description: Option<String>The description of the the composite model that this summary describes..
path: Option<Vec<AssetModelCompositeModelPathSegment>>The path that includes all the pieces that make up the composite model.
Implementations§
source§impl AssetModelCompositeModelSummary
impl AssetModelCompositeModelSummary
sourcepub fn external_id(&self) -> Option<&str>
pub fn external_id(&self) -> Option<&str>
The external ID of a composite model on this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
sourcepub fn type(&self) -> &str
pub fn type(&self) -> &str
The type of asset model.
-
ASSET_MODEL – (default) An asset model that you can use to create assets. Can't be included as a component in another asset model.
-
COMPONENT_MODEL – A reusable component that you can include in the composite models of other asset models. You can't create assets directly from this type of asset model.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the the composite model that this summary describes..
sourcepub fn path(&self) -> &[AssetModelCompositeModelPathSegment]
pub fn path(&self) -> &[AssetModelCompositeModelPathSegment]
The path that includes all the pieces that make up the 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 .path.is_none().
source§impl AssetModelCompositeModelSummary
impl AssetModelCompositeModelSummary
sourcepub fn builder() -> AssetModelCompositeModelSummaryBuilder
pub fn builder() -> AssetModelCompositeModelSummaryBuilder
Creates a new builder-style object to manufacture AssetModelCompositeModelSummary.
Trait Implementations§
source§impl Clone for AssetModelCompositeModelSummary
impl Clone for AssetModelCompositeModelSummary
source§fn clone(&self) -> AssetModelCompositeModelSummary
fn clone(&self) -> AssetModelCompositeModelSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for AssetModelCompositeModelSummary
impl PartialEq for AssetModelCompositeModelSummary
source§fn eq(&self, other: &AssetModelCompositeModelSummary) -> bool
fn eq(&self, other: &AssetModelCompositeModelSummary) -> bool
self and other values to be equal, and is used
by ==.