pub struct AtprotoPermissionMapping {
pub capability: Capability,
pub maximum_label: SecurityLabel,
}Expand description
A policy-approved, one-way translation from an exact ATProto permission to an interior UCAN capability and the greatest MAC object label it may target.
This is configuration supplied by the local authority, never by an external
DID. maximum_label does not grant clearance: the enrolled peer must already
dominate it, so an OAuth permission cannot raise MLS, assurance, or
compartment clearance.
Fields§
§capability: CapabilityThe exact interior capability the trusted gateway may place in a new local UCAN. External ATProto records never carry that UCAN themselves.
maximum_label: SecurityLabelThe bounded MAC label enforced alongside this translated capability.
Implementations§
Source§impl AtprotoPermissionMapping
impl AtprotoPermissionMapping
Sourcepub fn new(capability: Capability, maximum_label: SecurityLabel) -> Result<Self>
pub fn new(capability: Capability, maximum_label: SecurityLabel) -> Result<Self>
Create a mapping after rejecting wildcard interior authority. A broad
external grant must be expanded into individually reviewed exact entries
instead of being smuggled through * or a wildcard resource.
Trait Implementations§
Source§impl Clone for AtprotoPermissionMapping
impl Clone for AtprotoPermissionMapping
Source§fn clone(&self) -> AtprotoPermissionMapping
fn clone(&self) -> AtprotoPermissionMapping
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 AtprotoPermissionMapping
impl Debug for AtprotoPermissionMapping
Source§impl PartialEq for AtprotoPermissionMapping
impl PartialEq for AtprotoPermissionMapping
Source§fn eq(&self, other: &AtprotoPermissionMapping) -> bool
fn eq(&self, other: &AtprotoPermissionMapping) -> bool
self and other values to be equal, and is used by ==.impl Eq for AtprotoPermissionMapping
impl StructuralPartialEq for AtprotoPermissionMapping
Auto Trait Implementations§
impl Freeze for AtprotoPermissionMapping
impl RefUnwindSafe for AtprotoPermissionMapping
impl Send for AtprotoPermissionMapping
impl Sync for AtprotoPermissionMapping
impl Unpin for AtprotoPermissionMapping
impl UnsafeUnpin for AtprotoPermissionMapping
impl UnwindSafe for AtprotoPermissionMapping
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
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
key and return true if they are equal.§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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more