pub struct MetaContext {
pub server_label: String,
pub auth_state: String,
pub filter_warning: 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.
Trait Implementations§
Source§impl Clone for MetaContext
impl Clone for MetaContext
Source§fn clone(&self) -> MetaContext
fn clone(&self) -> MetaContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MetaContext
impl RefUnwindSafe for MetaContext
impl Send for MetaContext
impl Sync for MetaContext
impl Unpin for MetaContext
impl UnsafeUnpin for MetaContext
impl UnwindSafe for MetaContext
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