Struct oci_distribution::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: OciErrorCodeThe error code
message: StringAn optional message associated with the error
detail: ValueUnstructured 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)>
The lower-level source of this error, if any. Read more