Struct aws_sdk_datasync::types::TaskScheduleDetails
source · #[non_exhaustive]pub struct TaskScheduleDetails {
pub status_update_time: Option<DateTime>,
pub disabled_reason: Option<String>,
pub disabled_by: Option<ScheduleDisabledBy>,
}
Expand description
Provides information about your DataSync task schedule.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.status_update_time: Option<DateTime>
Indicates the last time the status of your task schedule changed. For example, if DataSync automatically disables your schedule because of a repeated error, you can see when the schedule was disabled.
disabled_reason: Option<String>
Provides a reason if the task schedule is disabled.
If your schedule is disabled by USER
, you see a Manually disabled by user.
message.
If your schedule is disabled by SERVICE
, you see an error message to help you understand why the task keeps failing. For information on resolving DataSync errors, see Troubleshooting issues with DataSync transfers.
disabled_by: Option<ScheduleDisabledBy>
Indicates how your task schedule was disabled.
-
USER
- Your schedule was manually disabled by using the UpdateTask operation or DataSync console. -
SERVICE
- Your schedule was automatically disabled by DataSync because the task failed repeatedly with the same error.
Implementations§
source§impl TaskScheduleDetails
impl TaskScheduleDetails
sourcepub fn status_update_time(&self) -> Option<&DateTime>
pub fn status_update_time(&self) -> Option<&DateTime>
Indicates the last time the status of your task schedule changed. For example, if DataSync automatically disables your schedule because of a repeated error, you can see when the schedule was disabled.
sourcepub fn disabled_reason(&self) -> Option<&str>
pub fn disabled_reason(&self) -> Option<&str>
Provides a reason if the task schedule is disabled.
If your schedule is disabled by USER
, you see a Manually disabled by user.
message.
If your schedule is disabled by SERVICE
, you see an error message to help you understand why the task keeps failing. For information on resolving DataSync errors, see Troubleshooting issues with DataSync transfers.
sourcepub fn disabled_by(&self) -> Option<&ScheduleDisabledBy>
pub fn disabled_by(&self) -> Option<&ScheduleDisabledBy>
Indicates how your task schedule was disabled.
-
USER
- Your schedule was manually disabled by using the UpdateTask operation or DataSync console. -
SERVICE
- Your schedule was automatically disabled by DataSync because the task failed repeatedly with the same error.
source§impl TaskScheduleDetails
impl TaskScheduleDetails
sourcepub fn builder() -> TaskScheduleDetailsBuilder
pub fn builder() -> TaskScheduleDetailsBuilder
Creates a new builder-style object to manufacture TaskScheduleDetails
.
Trait Implementations§
source§impl Clone for TaskScheduleDetails
impl Clone for TaskScheduleDetails
source§fn clone(&self) -> TaskScheduleDetails
fn clone(&self) -> TaskScheduleDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TaskScheduleDetails
impl Debug for TaskScheduleDetails
source§impl PartialEq for TaskScheduleDetails
impl PartialEq for TaskScheduleDetails
source§fn eq(&self, other: &TaskScheduleDetails) -> bool
fn eq(&self, other: &TaskScheduleDetails) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TaskScheduleDetails
Auto Trait Implementations§
impl Freeze for TaskScheduleDetails
impl RefUnwindSafe for TaskScheduleDetails
impl Send for TaskScheduleDetails
impl Sync for TaskScheduleDetails
impl Unpin for TaskScheduleDetails
impl UnwindSafe for TaskScheduleDetails
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more