#[non_exhaustive]pub struct RefusalDetail {
pub class: ErrorClass,
pub field: Option<String>,
pub limit: Option<u64>,
pub model: Option<String>,
pub kind: Option<String>,
pub estimate_usd: Option<Number>,
pub max_cost_usd: Option<Number>,
pub resets_at_ms: Option<u64>,
pub retry_after_ms: Option<u64>,
pub credential: Option<String>,
}Expand description
The detail of an admission refusal. Which members are present depends
on the code (see the contract’s table); class is always present, so a
caller that meets an unknown code still knows whether to retry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.class: ErrorClass§field: Option<String>The offending or differing request field, as a path (a map key
joined with a dot, an array index in brackets): batch_id,
model, questions, questions.<id>, questions.<id>.type,
questions.<id>.instructions, questions.<id>.criteria, items,
items[i], items[i].state, items[i].images,
items[i].images[j], max_cost_usd, or params for the request
as a whole. params is used only when none of the narrower paths
applies.
limit: Option<u64>The limit the field exceeded, where one applies.
model: Option<String>§kind: Option<String>The kind of a catalog row that is not a classifier.
estimate_usd: Option<Number>§max_cost_usd: Option<Number>§resets_at_ms: Option<u64>§retry_after_ms: Option<u64>§credential: Option<String>On auth_failed, the id of the credential the runner presented (for
example apikey:cloudflare), when the runner knows it, so an operator
can tell which login to fix. Always an id, never the secret itself.