pub struct TenantBoundary { /* private fields */ }Expand description
Zero-sized witness that a tenant boundary was crossed structurally.
A TenantBoundary value exists if and only if it was minted by
plexus-auth-core — its constructor is pub(crate). The framework
hands a TenantBoundary into every Tenanted<S> at construction;
the value rides along on every Scoped<'a, S> obtained from that
wrapper. Downstream audit / observability layers can accept a
TenantBoundary argument to attest “this code path is structurally
downstream of a tenant scoping” without re-deriving the fact.
§Sealing
- No fabrication.
new_sealedispub(crate). - No backdoor. No public constructor, no public field, no
From/Into, noDefault. - Copy-able.
Copyis derived so aScoped::boundary()accessor can return a value without invalidating the parent borrow’s witness.
Trait Implementations§
Source§impl Clone for TenantBoundary
impl Clone for TenantBoundary
Source§fn clone(&self) -> TenantBoundary
fn clone(&self) -> TenantBoundary
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 moreSource§impl Debug for TenantBoundary
impl Debug for TenantBoundary
Source§impl Hash for TenantBoundary
impl Hash for TenantBoundary
Source§impl PartialEq for TenantBoundary
impl PartialEq for TenantBoundary
Source§fn eq(&self, other: &TenantBoundary) -> bool
fn eq(&self, other: &TenantBoundary) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TenantBoundary
impl Eq for TenantBoundary
impl StructuralPartialEq for TenantBoundary
Auto Trait Implementations§
impl Freeze for TenantBoundary
impl RefUnwindSafe for TenantBoundary
impl Send for TenantBoundary
impl Sync for TenantBoundary
impl Unpin for TenantBoundary
impl UnsafeUnpin for TenantBoundary
impl UnwindSafe for TenantBoundary
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