Struct RejectedError
pub struct RejectedError {
pub code: RejectedErrorCode,
pub token: Option<String>,
pub message: Option<String>,
pub timestamp: Option<DateTime<Utc>>,
pub execution_state: Option<JobExecutionState>,
}Expand description
A struct representing an error that occurred when a request to the AWS IoT Jobs service was rejected.
This struct contains information about the error, including an optional client token, error message, timestamp, and job execution state (if applicable).
Fields§
§code: RejectedErrorCodeThe error code that indicates why a request to the AWS IoT Jobs service was rejected.
token: Option<String>Opaque token that can correlate this response to the original request.
message: Option<String>A text message that provides additional information.
timestamp: Option<DateTime<Utc>>The date and time the response was generated by AWS IoT.
execution_state: Option<JobExecutionState>A JobExecutionState object. This field is included only when the code
field has the value InvalidStateTransition or VersionMismatch.
Trait Implementations§
§impl Clone for RejectedError
impl Clone for RejectedError
§fn clone(&self) -> RejectedError
fn clone(&self) -> RejectedError
Returns a duplicate 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 more§impl Debug for RejectedError
impl Debug for RejectedError
§impl<'de> Deserialize<'de> for RejectedError
impl<'de> Deserialize<'de> for RejectedError
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for RejectedError
impl Display for RejectedError
§impl Error for RejectedError
impl Error for RejectedError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
§impl From<RejectedError> for Error
impl From<RejectedError> for Error
§fn from(source: RejectedError) -> Self
fn from(source: RejectedError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RejectedError
impl RefUnwindSafe for RejectedError
impl Send for RejectedError
impl Sync for RejectedError
impl Unpin for RejectedError
impl UnwindSafe for RejectedError
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