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 ==
.