pub struct CatalogContractViolationError {
pub kind: CatalogContractViolationErrorKind,
pub message: String,
pub reason: CatalogContractViolationReason,
}Expand description
An upstream catalog response broke the wire contract. Most importantly, every result must carry exactly one of a URL or embedded data: a result carrying both, or neither, is refused here rather than being guessed at.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§kind: CatalogContractViolationErrorKindDiscriminator: the upstream response broke the contract
message: StringHuman-readable explanation, safe to surface. Never echoes response content, nor a query, URL, handle, or secret.
reason: CatalogContractViolationReasonWhich rule the response broke.
Trait Implementations§
Source§impl Clone for CatalogContractViolationError
impl Clone for CatalogContractViolationError
Source§fn clone(&self) -> CatalogContractViolationError
fn clone(&self) -> CatalogContractViolationError
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 Default for CatalogContractViolationError
impl Default for CatalogContractViolationError
Source§fn default() -> CatalogContractViolationError
fn default() -> CatalogContractViolationError
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CatalogContractViolationError
impl<'de> Deserialize<'de> for CatalogContractViolationError
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 CatalogContractViolationError
impl RefUnwindSafe for CatalogContractViolationError
impl Send for CatalogContractViolationError
impl Sync for CatalogContractViolationError
impl Unpin for CatalogContractViolationError
impl UnsafeUnpin for CatalogContractViolationError
impl UnwindSafe for CatalogContractViolationError
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