pub struct StackState {
pub platform: Platform,
pub resource_prefix: String,
pub resources: HashMap<String, StackResourceState>,
}Expand description
Represents the collective state of all resources in a stack, including platform and pending actions.
JSON schema
{
"description": "Represents the collective state of all resources in a stack, including platform and pending actions.",
"type": "object",
"required": [
"platform",
"resourcePrefix",
"resources"
],
"properties": {
"platform": {
"description": "The target platform for this stack state.",
"allOf": [
{
"$ref": "#/components/schemas/Platform"
}
]
},
"resourcePrefix": {
"description": "A prefix used for resource naming to ensure uniqueness across deployments.",
"type": "string"
},
"resources": {
"description": "The state of individual resources, keyed by resource ID.",
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/StackResourceState"
}
}
}
}Fields§
§platform: PlatformThe target platform for this stack state.
resource_prefix: StringA prefix used for resource naming to ensure uniqueness across deployments.
resources: HashMap<String, StackResourceState>The state of individual resources, keyed by resource ID.
Implementations§
Source§impl StackState
impl StackState
pub fn builder() -> StackState
Trait Implementations§
Source§impl Clone for StackState
impl Clone for StackState
Source§fn clone(&self) -> StackState
fn clone(&self) -> StackState
Returns a duplicate 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 StackState
impl Debug for StackState
Source§impl<'de> Deserialize<'de> for StackState
impl<'de> Deserialize<'de> for StackState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&StackState> for StackState
impl From<&StackState> for StackState
Source§fn from(value: &StackState) -> Self
fn from(value: &StackState) -> Self
Converts to this type from the input type.
Source§impl From<StackState> for StackState
impl From<StackState> for StackState
Source§fn from(value: StackState) -> Self
fn from(value: StackState) -> Self
Converts to this type from the input type.
Source§impl Serialize for StackState
impl Serialize for StackState
Source§impl TryFrom<StackState> for StackState
impl TryFrom<StackState> for StackState
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: StackState) -> Result<Self, ConversionError>
fn try_from(value: StackState) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for StackState
impl RefUnwindSafe for StackState
impl Send for StackState
impl Sync for StackState
impl Unpin for StackState
impl UnsafeUnpin for StackState
impl UnwindSafe for StackState
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