#[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 ==.impl StructuralPartialEq for AssetModelCompositeModel
Auto Trait Implementations§
impl Freeze for AssetModelCompositeModel
impl RefUnwindSafe for AssetModelCompositeModel
impl Send for AssetModelCompositeModel
impl Sync for AssetModelCompositeModel
impl Unpin for AssetModelCompositeModel
impl UnwindSafe for AssetModelCompositeModel
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