Struct aws_sdk_iotsitewise::types::VariableValue
source · #[non_exhaustive]pub struct VariableValue {
pub property_id: Option<String>,
pub hierarchy_id: Option<String>,
pub property_path: Option<Vec<AssetModelPropertyPathSegment>>,
}Expand description
Identifies a property value used in an expression.
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.property_id: Option<String>The ID of the property to use as the variable. You can use the property name if it's from the same asset model. If the property has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.
hierarchy_id: Option<String>The ID of the hierarchy to query for the property ID. You can use the hierarchy's name instead of the hierarchy's ID. If the hierarchy has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.
You use a hierarchy ID instead of a model ID because you can have several hierarchies using the same model and therefore the same propertyId. For example, you might have separately grouped assets that come from the same asset model. For more information, see Asset hierarchies in the IoT SiteWise User Guide.
property_path: Option<Vec<AssetModelPropertyPathSegment>>The path of the property.
Implementations§
source§impl VariableValue
impl VariableValue
sourcepub fn property_id(&self) -> Option<&str>
pub fn property_id(&self) -> Option<&str>
The ID of the property to use as the variable. You can use the property name if it's from the same asset model. If the property has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.
sourcepub fn hierarchy_id(&self) -> Option<&str>
pub fn hierarchy_id(&self) -> Option<&str>
The ID of the hierarchy to query for the property ID. You can use the hierarchy's name instead of the hierarchy's ID. If the hierarchy has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.
You use a hierarchy ID instead of a model ID because you can have several hierarchies using the same model and therefore the same propertyId. For example, you might have separately grouped assets that come from the same asset model. For more information, see Asset hierarchies in the IoT SiteWise User Guide.
sourcepub fn property_path(&self) -> &[AssetModelPropertyPathSegment]
pub fn property_path(&self) -> &[AssetModelPropertyPathSegment]
The path of the property.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .property_path.is_none().
source§impl VariableValue
impl VariableValue
sourcepub fn builder() -> VariableValueBuilder
pub fn builder() -> VariableValueBuilder
Creates a new builder-style object to manufacture VariableValue.
Trait Implementations§
source§impl Clone for VariableValue
impl Clone for VariableValue
source§fn clone(&self) -> VariableValue
fn clone(&self) -> VariableValue
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for VariableValue
impl Debug for VariableValue
source§impl PartialEq for VariableValue
impl PartialEq for VariableValue
source§fn eq(&self, other: &VariableValue) -> bool
fn eq(&self, other: &VariableValue) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for VariableValue
Auto Trait Implementations§
impl Freeze for VariableValue
impl RefUnwindSafe for VariableValue
impl Send for VariableValue
impl Sync for VariableValue
impl Unpin for VariableValue
impl UnwindSafe for VariableValue
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