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§impl Debug for ServiceErrorWire
impl Debug for ServiceErrorWire
Source§impl Default for ServiceErrorWire
impl Default for ServiceErrorWire
Source§impl<'de> Deserialize<'de> for ServiceErrorWire
impl<'de> Deserialize<'de> for ServiceErrorWire
Source§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
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