#[non_exhaustive]pub struct UpdateTaskProtectionOutput {
pub protected_tasks: Option<Vec<ProtectedTask>>,
pub failures: Option<Vec<Failure>>,
/* private fields */
}
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.protected_tasks: Option<Vec<ProtectedTask>>
A list of tasks with the following information.
-
taskArn
: The task ARN. -
protectionEnabled
: The protection status of the task. If scale-in protection is turned on for a task, the value istrue
. Otherwise, it isfalse
. -
expirationDate
: The epoch time when protection for the task will expire.
failures: Option<Vec<Failure>>
Any failures associated with the call.
Implementations§
source§impl UpdateTaskProtectionOutput
impl UpdateTaskProtectionOutput
sourcepub fn protected_tasks(&self) -> Option<&[ProtectedTask]>
pub fn protected_tasks(&self) -> Option<&[ProtectedTask]>
A list of tasks with the following information.
-
taskArn
: The task ARN. -
protectionEnabled
: The protection status of the task. If scale-in protection is turned on for a task, the value istrue
. Otherwise, it isfalse
. -
expirationDate
: The epoch time when protection for the task will expire.
source§impl UpdateTaskProtectionOutput
impl UpdateTaskProtectionOutput
sourcepub fn builder() -> UpdateTaskProtectionOutputBuilder
pub fn builder() -> UpdateTaskProtectionOutputBuilder
Creates a new builder-style object to manufacture UpdateTaskProtectionOutput
.
Trait Implementations§
source§impl Clone for UpdateTaskProtectionOutput
impl Clone for UpdateTaskProtectionOutput
source§fn clone(&self) -> UpdateTaskProtectionOutput
fn clone(&self) -> UpdateTaskProtectionOutput
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 UpdateTaskProtectionOutput
impl Debug for UpdateTaskProtectionOutput
source§impl PartialEq<UpdateTaskProtectionOutput> for UpdateTaskProtectionOutput
impl PartialEq<UpdateTaskProtectionOutput> for UpdateTaskProtectionOutput
source§fn eq(&self, other: &UpdateTaskProtectionOutput) -> bool
fn eq(&self, other: &UpdateTaskProtectionOutput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for UpdateTaskProtectionOutput
impl RequestId for UpdateTaskProtectionOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
Returns the request ID, or
None
if the service could not be reached.impl StructuralPartialEq for UpdateTaskProtectionOutput
Auto Trait Implementations§
impl RefUnwindSafe for UpdateTaskProtectionOutput
impl Send for UpdateTaskProtectionOutput
impl Sync for UpdateTaskProtectionOutput
impl Unpin for UpdateTaskProtectionOutput
impl UnwindSafe for UpdateTaskProtectionOutput
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