Struct aws_sdk_iotsitewise::types::AssetModelStatus
source · #[non_exhaustive]pub struct AssetModelStatus {
pub state: AssetModelState,
pub error: Option<ErrorDetails>,
}Expand description
Contains current status information for an asset model. For more information, see Asset and model states in the IoT SiteWise User Guide.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.state: AssetModelStateThe current state of the asset model.
error: Option<ErrorDetails>Contains associated error information, if any.
Implementations§
source§impl AssetModelStatus
impl AssetModelStatus
sourcepub fn state(&self) -> &AssetModelState
pub fn state(&self) -> &AssetModelState
The current state of the asset model.
sourcepub fn error(&self) -> Option<&ErrorDetails>
pub fn error(&self) -> Option<&ErrorDetails>
Contains associated error information, if any.
source§impl AssetModelStatus
impl AssetModelStatus
sourcepub fn builder() -> AssetModelStatusBuilder
pub fn builder() -> AssetModelStatusBuilder
Creates a new builder-style object to manufacture AssetModelStatus.
Trait Implementations§
source§impl Clone for AssetModelStatus
impl Clone for AssetModelStatus
source§fn clone(&self) -> AssetModelStatus
fn clone(&self) -> AssetModelStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AssetModelStatus
impl Debug for AssetModelStatus
source§impl PartialEq for AssetModelStatus
impl PartialEq for AssetModelStatus
source§fn eq(&self, other: &AssetModelStatus) -> bool
fn eq(&self, other: &AssetModelStatus) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AssetModelStatus
Auto Trait Implementations§
impl RefUnwindSafe for AssetModelStatus
impl Send for AssetModelStatus
impl Sync for AssetModelStatus
impl Unpin for AssetModelStatus
impl UnwindSafe for AssetModelStatus
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.