Struct oci_client::errors::OciError
source · pub struct OciError {
pub code: OciErrorCode,
pub message: String,
pub detail: Value,
}
Expand description
The OCI specification defines a specific error format.
This struct represents that error format, which is formally described here: https://github.com/opencontainers/distribution-spec/blob/master/spec.md#errors-2
Fields§
§code: OciErrorCode
The error code
message: String
An optional message associated with the error
detail: Value
Unstructured optional data associated with the error
Trait Implementations§
source§impl<'de> Deserialize<'de> for OciError
impl<'de> Deserialize<'de> for OciError
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
source§impl Error for OciError
impl Error for OciError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Auto Trait Implementations§
impl Freeze for OciError
impl RefUnwindSafe for OciError
impl Send for OciError
impl Sync for OciError
impl Unpin for OciError
impl UnwindSafe for OciError
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