pub struct AclDocument {
pub context: Option<Value>,
pub graph: Option<Vec<AclAuthorization>>,
pub inherited: bool,
}Expand description
Parsed ACL document containing zero or more authorization rules.
Fields§
§context: Option<Value>JSON-LD @context value, if the document was parsed from JSON-LD.
graph: Option<Vec<AclAuthorization>>The list of authorization rules in this document.
inherited: booltrue when this ACL was resolved from an ANCESTOR container’s
.acl sidecar rather than the resource’s own sidecar (the WAC
walk-up found it one or more levels up). An inherited document
must honour ONLY acl:default rules — acl:accessTo rules apply
to the exact resource they name and MUST NOT leak to descendants
(WAC §4.2). Defaults to false; never serialised (it is a
resolution-context flag, not part of the ACL on the wire).
Trait Implementations§
Source§impl Clone for AclDocument
impl Clone for AclDocument
Source§fn clone(&self) -> AclDocument
fn clone(&self) -> AclDocument
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 AclDocument
impl Debug for AclDocument
Source§impl Default for AclDocument
impl Default for AclDocument
Source§fn default() -> AclDocument
fn default() -> AclDocument
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AclDocument
impl<'de> Deserialize<'de> for AclDocument
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AclDocument
impl RefUnwindSafe for AclDocument
impl Send for AclDocument
impl Sync for AclDocument
impl Unpin for AclDocument
impl UnsafeUnpin for AclDocument
impl UnwindSafe for AclDocument
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