#[non_exhaustive]pub struct AssetModelCompositeModelDefinition {
pub name: String,
pub description: Option<String>,
pub type: String,
pub properties: Option<Vec<AssetModelPropertyDefinition>>,
pub id: Option<String>,
pub external_id: Option<String>,
}Expand description
Contains a composite model definition in an asset model. This composite model definition is applied to all assets created from the asset 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<AssetModelPropertyDefinition>>The asset property definitions for this composite model.
id: Option<String>The ID to assign to the composite model, 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.
external_id: Option<String>An external ID to assign to the composite model. The external ID must be unique among composite models within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
Implementations§
source§impl AssetModelCompositeModelDefinition
impl AssetModelCompositeModelDefinition
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) -> &[AssetModelPropertyDefinition]
pub fn properties(&self) -> &[AssetModelPropertyDefinition]
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 id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
The ID to assign to the composite model, 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.
sourcepub fn external_id(&self) -> Option<&str>
pub fn external_id(&self) -> Option<&str>
An external ID to assign to the composite model. The external ID must be unique among composite models within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
source§impl AssetModelCompositeModelDefinition
impl AssetModelCompositeModelDefinition
sourcepub fn builder() -> AssetModelCompositeModelDefinitionBuilder
pub fn builder() -> AssetModelCompositeModelDefinitionBuilder
Creates a new builder-style object to manufacture AssetModelCompositeModelDefinition.
Trait Implementations§
source§impl Clone for AssetModelCompositeModelDefinition
impl Clone for AssetModelCompositeModelDefinition
source§fn clone(&self) -> AssetModelCompositeModelDefinition
fn clone(&self) -> AssetModelCompositeModelDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for AssetModelCompositeModelDefinition
impl PartialEq for AssetModelCompositeModelDefinition
source§fn eq(&self, other: &AssetModelCompositeModelDefinition) -> bool
fn eq(&self, other: &AssetModelCompositeModelDefinition) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AssetModelCompositeModelDefinition
Auto Trait Implementations§
impl Freeze for AssetModelCompositeModelDefinition
impl RefUnwindSafe for AssetModelCompositeModelDefinition
impl Send for AssetModelCompositeModelDefinition
impl Sync for AssetModelCompositeModelDefinition
impl Unpin for AssetModelCompositeModelDefinition
impl UnwindSafe for AssetModelCompositeModelDefinition
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