Struct aws_sdk_ec2::types::InstanceStateChange
source · #[non_exhaustive]pub struct InstanceStateChange {
pub current_state: Option<InstanceState>,
pub instance_id: Option<String>,
pub previous_state: Option<InstanceState>,
}
Expand description
Describes an instance state change.
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.current_state: Option<InstanceState>
The current state of the instance.
instance_id: Option<String>
The ID of the instance.
previous_state: Option<InstanceState>
The previous state of the instance.
Implementations§
source§impl InstanceStateChange
impl InstanceStateChange
sourcepub fn current_state(&self) -> Option<&InstanceState>
pub fn current_state(&self) -> Option<&InstanceState>
The current state of the instance.
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance.
sourcepub fn previous_state(&self) -> Option<&InstanceState>
pub fn previous_state(&self) -> Option<&InstanceState>
The previous state of the instance.
source§impl InstanceStateChange
impl InstanceStateChange
sourcepub fn builder() -> InstanceStateChangeBuilder
pub fn builder() -> InstanceStateChangeBuilder
Creates a new builder-style object to manufacture InstanceStateChange
.
Trait Implementations§
source§impl Clone for InstanceStateChange
impl Clone for InstanceStateChange
source§fn clone(&self) -> InstanceStateChange
fn clone(&self) -> InstanceStateChange
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 InstanceStateChange
impl Debug for InstanceStateChange
source§impl PartialEq<InstanceStateChange> for InstanceStateChange
impl PartialEq<InstanceStateChange> for InstanceStateChange
source§fn eq(&self, other: &InstanceStateChange) -> bool
fn eq(&self, other: &InstanceStateChange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceStateChange
Auto Trait Implementations§
impl RefUnwindSafe for InstanceStateChange
impl Send for InstanceStateChange
impl Sync for InstanceStateChange
impl Unpin for InstanceStateChange
impl UnwindSafe for InstanceStateChange
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