Skip to main content

KEEP_REQUIRED

Constant KEEP_REQUIRED 

Source
pub const KEEP_REQUIRED: &[(&str, &str)];
Expand description

Response properties that stay required: (schema key, property).

The compiler maintains most of this list. Every other response property becomes Option, and a CLI read of it as a plain value fails to compile; add the pair here when the CLI needs the value, so decode keeps failing fast at the HTTP boundary if the server stops sending it. Handling it as Option at the read site instead is a behavior decision: a missing money field must not default to zero. A few entries are semantic, not compiler-found; their comments say why.

The schema key names where the property is declared, not the generated Rust type: a component name (AgentProfile), a nested inline object under it (AgentReadiness.settlement_domain), or an allOf member (TaskDetail.allOf.1). The private schema_key builds these keys.