pub struct ServiceErrorWire {
pub message: Option<String>,
pub quota_code: Option<String>,
pub service_code: Option<String>,
pub resource_type: Option<String>,
pub resource_id: Option<String>,
}Expand description
The modeled error shapes, which all carry a message and several add fields.
One type for all seven because every one has message as its only member this client
reads, and the status code is what distinguishes them.
message is Option for a reason that is itself a finding: an unsupported region
answers AccessDeniedException with the message field null (TRAP-6). A required
String here would fail to deserialize and report a parse error instead of the
denial, hiding the one detail that identifies the trap.
Fields§
§message: Option<String>§quota_code: Option<String>ThrottlingException/ServiceQuotaExceededException.
service_code: Option<String>ThrottlingException/ServiceQuotaExceededException.
resource_type: Option<String>ConflictException/ResourceNotFoundException/ServiceQuotaExceededException.
resource_id: Option<String>As above.
Trait Implementations§
Source§impl Clone for ServiceErrorWire
impl Clone for ServiceErrorWire
Source§fn clone(&self) -> ServiceErrorWire
fn clone(&self) -> ServiceErrorWire
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServiceErrorWire
impl Debug for ServiceErrorWire
Source§impl Default for ServiceErrorWire
impl Default for ServiceErrorWire
Source§fn default() -> ServiceErrorWire
fn default() -> ServiceErrorWire
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceErrorWire
impl<'de> Deserialize<'de> for ServiceErrorWire
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServiceErrorWire, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServiceErrorWire, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ServiceErrorWire
impl RefUnwindSafe for ServiceErrorWire
impl Send for ServiceErrorWire
impl Sync for ServiceErrorWire
impl Unpin for ServiceErrorWire
impl UnsafeUnpin for ServiceErrorWire
impl UnwindSafe for ServiceErrorWire
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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 moreCreates a shared type from an unshared type.