pub struct MetaContext {
pub server_label: String,
pub auth_state: String,
pub filter_warning: Option<String>,
pub count_caveat: Option<String>,
pub count_cost: Option<String>,
}Expand description
Auth and server context attached to every rendered response. See dsp-cli/ADR-0007.
Fields§
§server_label: String§auth_state: String§filter_warning: Option<String>dsp-cli/ADR-0007 silent-filter disclosure for instance-side reads.
Set to Some(message) by instance-side commands (resource list,
resource describe) to disclose that results may be filtered by the
caller’s authentication state (anonymous → only public resources visible;
authenticated → bounded by permissions). None for schema-side commands
(project list/describe, data-model list/describe, resource-type list/describe, data-model structure) that are not affected by caller
identity.
count_caveat: Option<String>Schema-side --count disclosure note (resource-type list/describe).
Set to Some(message) by the action layer when --count was passed,
disclosing that the v3 resourcesPerOntology counts are NOT
permission-filtered (unlike resource list’s filter_warning, which IS
permission-filtered) and exclude deleted resources. None when --count
was not used, and always None for every command other than
resource-type list/describe. Deliberately a DISTINCT field from
filter_warning — a different semantic contract, not reused (see design plan
030-resource-type-count in the dsp-incubator archive).
count_cost: Option<String>dsp vre vocabulary list --count cost-disclosure note (plan 034).
Set to Some(message) by the action layer when --count was passed on
vocabulary list, disclosing that --count costs one extra tree fetch
PER vocabulary (sequential, unthrottled). Deliberately a DISTINCT field
from count_caveat — count_caveat’s message is about permission-filtering
accuracy, which does not apply here: vocabularies are public and their
counts are exact. None when --count was not used, and always None
for every command other than vocabulary list.