Struct aws_sdk_codedeploy::types::Diagnostics
source · #[non_exhaustive]pub struct Diagnostics {
pub error_code: Option<LifecycleErrorCode>,
pub script_name: Option<String>,
pub message: Option<String>,
pub log_tail: Option<String>,
}
Expand description
Diagnostic information about executable scripts that are part of a deployment.
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.error_code: Option<LifecycleErrorCode>
The associated error code:
-
Success: The specified script ran.
-
ScriptMissing: The specified script was not found in the specified location.
-
ScriptNotExecutable: The specified script is not a recognized executable file type.
-
ScriptTimedOut: The specified script did not finish running in the specified time period.
-
ScriptFailed: The specified script failed to run as expected.
-
UnknownError: The specified script did not run for an unknown reason.
script_name: Option<String>
The name of the script.
message: Option<String>
The message associated with the error.
log_tail: Option<String>
The last portion of the diagnostic log.
If available, CodeDeploy returns up to the last 4 KB of the diagnostic log.
Implementations§
source§impl Diagnostics
impl Diagnostics
sourcepub fn error_code(&self) -> Option<&LifecycleErrorCode>
pub fn error_code(&self) -> Option<&LifecycleErrorCode>
The associated error code:
-
Success: The specified script ran.
-
ScriptMissing: The specified script was not found in the specified location.
-
ScriptNotExecutable: The specified script is not a recognized executable file type.
-
ScriptTimedOut: The specified script did not finish running in the specified time period.
-
ScriptFailed: The specified script failed to run as expected.
-
UnknownError: The specified script did not run for an unknown reason.
sourcepub fn script_name(&self) -> Option<&str>
pub fn script_name(&self) -> Option<&str>
The name of the script.
source§impl Diagnostics
impl Diagnostics
sourcepub fn builder() -> DiagnosticsBuilder
pub fn builder() -> DiagnosticsBuilder
Creates a new builder-style object to manufacture Diagnostics
.
Trait Implementations§
source§impl Clone for Diagnostics
impl Clone for Diagnostics
source§fn clone(&self) -> Diagnostics
fn clone(&self) -> Diagnostics
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Diagnostics
impl Debug for Diagnostics
source§impl PartialEq for Diagnostics
impl PartialEq for Diagnostics
source§fn eq(&self, other: &Diagnostics) -> bool
fn eq(&self, other: &Diagnostics) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Diagnostics
Auto Trait Implementations§
impl Freeze for Diagnostics
impl RefUnwindSafe for Diagnostics
impl Send for Diagnostics
impl Sync for Diagnostics
impl Unpin for Diagnostics
impl UnwindSafe for Diagnostics
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> 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