pub struct ApiVisibilityView { /* private fields */ }Expand description
A bounded, raw-value-free API response view ready for paired comparison.
The view retains opaque context and resource handles, the API surface, the
exact HTTP status, and two SHA-256 signatures. It does not retain the
supplied serde_json::Value or any canonical byte buffer. This type is
intentionally not serializable: persist the resulting
ApiVisibilityComparison and the ApiVisibilityLimits policy instead.
The signatures are deterministic pseudonymous fingerprints, not MACs, signatures, attestations, or substitutes for an authorized evidence-write boundary. Context and scope handles are serialized by the resulting core comparison, so callers must use bounded, non-secret opaque identifiers.
Implementations§
Source§impl ApiVisibilityView
impl ApiVisibilityView
Sourcepub fn context_id(&self) -> &str
pub fn context_id(&self) -> &str
Returns the non-secret opaque authorization or presentation context.
Sourcepub fn resource_scope_id(&self) -> &str
pub fn resource_scope_id(&self) -> &str
Returns the non-secret opaque logical-resource scope.
Sourcepub const fn surface(&self) -> ApiSurfaceKind
pub const fn surface(&self) -> ApiSurfaceKind
Returns the declared API surface.
Sourcepub const fn limits(&self) -> ApiVisibilityLimits
pub const fn limits(&self) -> ApiVisibilityLimits
Returns the policy used to create this view.
Trait Implementations§
Source§impl Clone for ApiVisibilityView
impl Clone for ApiVisibilityView
Source§fn clone(&self) -> ApiVisibilityView
fn clone(&self) -> ApiVisibilityView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ApiVisibilityView
impl Debug for ApiVisibilityView
impl Eq for ApiVisibilityView
Source§impl PartialEq for ApiVisibilityView
impl PartialEq for ApiVisibilityView
impl StructuralPartialEq for ApiVisibilityView
Auto Trait Implementations§
impl Freeze for ApiVisibilityView
impl RefUnwindSafe for ApiVisibilityView
impl Send for ApiVisibilityView
impl Sync for ApiVisibilityView
impl Unpin for ApiVisibilityView
impl UnsafeUnpin for ApiVisibilityView
impl UnwindSafe for ApiVisibilityView
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.