pub enum DynamicRefusal {
NoDynamicCapability,
CapabilityInvalid {
detail: String,
},
ArtifactMismatch {
declared: ArtifactId,
},
OperationUnsupported {
operation: DynamicOperation,
output: DynamicOutputKind,
},
TaskFamilyUndeclared,
ExceedsDeclaredLimit {
limit: String,
declared: u64,
requested: u64,
},
PrivacyUnsupported {
option: String,
},
CostUnenforceable {
model: CostModel,
},
CostUnknown,
CostAboveCap {
bound: u64,
cap: u64,
},
BudgetExhausted,
}Expand description
Why a request was refused before dispatch (3.4, 3.5).
Variants§
NoDynamicCapability
The backend declares no dynamic capability; a registered-plan descriptor never suffices.
CapabilityInvalid
The declared capability fails its own structural bounds.
ArtifactMismatch
The declaration is for another backend or artifact than the request requires.
Fields
§
declared: ArtifactIdOperationUnsupported
TaskFamilyUndeclared
ExceedsDeclaredLimit
The request does not fit a declared limit without truncation.
PrivacyUnsupported
CostUnenforceable
The cost model is not bounded, so no enforceable bound exists.
CostUnknown
The per-call disclosure is not an enforceable bound.
CostAboveCap
The enforceable bound is above the cap.
BudgetExhausted
A host ledger cannot hold the reservation.
Trait Implementations§
Source§impl Clone for DynamicRefusal
impl Clone for DynamicRefusal
Source§impl Debug for DynamicRefusal
impl Debug for DynamicRefusal
Source§impl<'de> Deserialize<'de> for DynamicRefusal
impl<'de> Deserialize<'de> for DynamicRefusal
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
impl Eq for DynamicRefusal
Source§impl JsonSchema for DynamicRefusal
impl JsonSchema for DynamicRefusal
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DynamicRefusal
impl PartialEq for DynamicRefusal
Source§impl Serialize for DynamicRefusal
impl Serialize for DynamicRefusal
impl StructuralPartialEq for DynamicRefusal
Auto Trait Implementations§
impl Freeze for DynamicRefusal
impl RefUnwindSafe for DynamicRefusal
impl Send for DynamicRefusal
impl Sync for DynamicRefusal
impl Unpin for DynamicRefusal
impl UnsafeUnpin for DynamicRefusal
impl UnwindSafe for DynamicRefusal
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