pub struct CdfApiError {
pub code: u32,
pub message: String,
pub missing: Option<ApiErrorDetail>,
pub duplicated: Option<ApiErrorDetail>,
pub request_id: Option<String>,
}Expand description
An Error from the CDF API.
Fields§
§code: u32HTTP status code.
message: StringError description.
missing: Option<ApiErrorDetail>List of missing items.
duplicated: Option<ApiErrorDetail>List of duplicated items.
request_id: Option<String>Request ID, if available.
Trait Implementations§
Source§impl Debug for CdfApiError
impl Debug for CdfApiError
Source§impl Default for CdfApiError
impl Default for CdfApiError
Source§fn default() -> CdfApiError
fn default() -> CdfApiError
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CdfApiError
impl RefUnwindSafe for CdfApiError
impl Send for CdfApiError
impl Sync for CdfApiError
impl Unpin for CdfApiError
impl UnwindSafe for CdfApiError
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> 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> IntoPatchItem<UpdateSet<T>> for T
impl<T> IntoPatchItem<UpdateSet<T>> for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.