#[non_exhaustive]pub struct Stage {
pub name: Name,
pub message: String,
pub state: State,
pub resource: String,
pub resource_uri: String,
pub state_messages: Vec<StateMessage>,
/* private fields */
}
Expand description
Each Stage of the deployment process
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.name: Name
Name of the Stage. This will be unique for each Stage.
message: String
Message describing the Stage
state: State
Current state of the Stage
resource: String
Resource of the Stage
resource_uri: String
Link to the current Stage resource
state_messages: Vec<StateMessage>
State messages from the current Stage.
Implementations§
Source§impl Stage
impl Stage
pub fn new() -> Self
Sourcepub fn set_message<T: Into<String>>(self, v: T) -> Self
pub fn set_message<T: Into<String>>(self, v: T) -> Self
Sets the value of message.
Sourcepub fn set_resource<T: Into<String>>(self, v: T) -> Self
pub fn set_resource<T: Into<String>>(self, v: T) -> Self
Sets the value of resource.
Sourcepub fn set_resource_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_resource_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of resource_uri.
Sourcepub fn set_state_messages<T, V>(self, v: T) -> Self
pub fn set_state_messages<T, V>(self, v: T) -> Self
Sets the value of state_messages.
Trait Implementations§
impl StructuralPartialEq for Stage
Auto Trait Implementations§
impl Freeze for Stage
impl RefUnwindSafe for Stage
impl Send for Stage
impl Sync for Stage
impl Unpin for Stage
impl UnwindSafe for Stage
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