pub trait Resource: Sized + Sealed {
type Properties: Properties<Self>;
const TYPE: &'static str;
// Required methods
fn properties(&self) -> &Self::Properties;
fn properties_mut(&mut self) -> &mut Self::Properties;
}Expand description
Trait for stack resources, such as an Amazon Elastic Compute Cloud instance or an Amazon Simple Storage Service bucket.
Required Associated Constants§
Required Associated Types§
Sourcetype Properties: Properties<Self>
type Properties: Properties<Self>
Type that represents the set of properties the resource can be configured with.
Required Methods§
Sourcefn properties(&self) -> &Self::Properties
fn properties(&self) -> &Self::Properties
Get a reference to the properties on the resource.
Sourcefn properties_mut(&mut self) -> &mut Self::Properties
fn properties_mut(&mut self) -> &mut Self::Properties
Get a mutable reference to the properties on the resource.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.