pub struct MetaContext {
pub server_label: String,
pub auth_state: String,
pub filter_warning: Option<String>,
pub count_caveat: Option<String>,
}Expand description
Auth and server context attached to every rendered response. See ADR-0007.
Fields§
§server_label: String§auth_state: String§filter_warning: Option<String>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 plan
docs/design/plans/030-resource-type-count/implementation-plan.md).
Trait Implementations§
Source§impl Clone for MetaContext
impl Clone for MetaContext
Source§fn clone(&self) -> MetaContext
fn clone(&self) -> MetaContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more