#[non_exhaustive]pub struct AssetModelHierarchyDefinition {
pub name: String,
pub child_asset_model_id: String,
pub id: Option<String>,
pub external_id: Option<String>,
}Expand description
Contains an asset model hierarchy used in asset model creation. An asset model hierarchy determines the kind (or type) of asset that can belong to a hierarchy.
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 asset model hierarchy definition (as specified in the CreateAssetModel or UpdateAssetModel API operation).
child_asset_model_id: StringThe ID of an asset model for this hierarchy. This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
id: Option<String>The ID to assign to the asset model hierarchy, 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 asset model hierarchy. The external ID must be unique among asset model hierarchies within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
Implementations§
source§impl AssetModelHierarchyDefinition
impl AssetModelHierarchyDefinition
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The name of the asset model hierarchy definition (as specified in the CreateAssetModel or UpdateAssetModel API operation).
sourcepub fn child_asset_model_id(&self) -> &str
pub fn child_asset_model_id(&self) -> &str
The ID of an asset model for this hierarchy. This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
The ID to assign to the asset model hierarchy, 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 asset model hierarchy. The external ID must be unique among asset model hierarchies within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
source§impl AssetModelHierarchyDefinition
impl AssetModelHierarchyDefinition
sourcepub fn builder() -> AssetModelHierarchyDefinitionBuilder
pub fn builder() -> AssetModelHierarchyDefinitionBuilder
Creates a new builder-style object to manufacture AssetModelHierarchyDefinition.
Trait Implementations§
source§impl Clone for AssetModelHierarchyDefinition
impl Clone for AssetModelHierarchyDefinition
source§fn clone(&self) -> AssetModelHierarchyDefinition
fn clone(&self) -> AssetModelHierarchyDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for AssetModelHierarchyDefinition
impl PartialEq for AssetModelHierarchyDefinition
source§fn eq(&self, other: &AssetModelHierarchyDefinition) -> bool
fn eq(&self, other: &AssetModelHierarchyDefinition) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AssetModelHierarchyDefinition
Auto Trait Implementations§
impl Freeze for AssetModelHierarchyDefinition
impl RefUnwindSafe for AssetModelHierarchyDefinition
impl Send for AssetModelHierarchyDefinition
impl Sync for AssetModelHierarchyDefinition
impl Unpin for AssetModelHierarchyDefinition
impl UnwindSafe for AssetModelHierarchyDefinition
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