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