pub struct AclAuthorization {
pub id: Option<String>,
pub type: Option<String>,
pub agent: Option<IdOrIds>,
pub agent_class: Option<IdOrIds>,
pub agent_group: Option<IdOrIds>,
pub origin: Option<IdOrIds>,
pub access_to: Option<IdOrIds>,
pub default: Option<IdOrIds>,
pub mode: Option<IdOrIds>,
pub condition: Option<Vec<Condition>>,
}Expand description
A single WAC authorization rule describing who may access what, and how.
Fields§
§id: Option<String>Node identifier for this authorization (e.g. #owner).
type: Option<String>RDF type, typically acl:Authorization.
agent: Option<IdOrIds>WebID(s) of the agent(s) this rule grants access to.
agent_class: Option<IdOrIds>Agent class (foaf:Agent for public, acl:AuthenticatedAgent for logged-in).
agent_group: Option<IdOrIds>IRI(s) of vcard:Group documents whose members are granted access.
origin: Option<IdOrIds>Permitted request origin(s) per WAC section 4.3.
access_to: Option<IdOrIds>Resource path(s) this rule applies to (exact match + direct children).
default: Option<IdOrIds>Container path(s) whose descendants inherit this rule recursively.
mode: Option<IdOrIds>Access mode(s) granted: acl:Read, acl:Write, acl:Append, acl:Control.
condition: Option<Vec<Condition>>WAC 2.0 conjunctive conditions. Every listed condition must be
Satisfied for this authorisation to grant access. An unknown
condition type parses as Condition::Unknown and evaluates to
NotApplicable, which fails closed — see
crate::wac::conditions.
Trait Implementations§
Source§impl Clone for AclAuthorization
impl Clone for AclAuthorization
Source§fn clone(&self) -> AclAuthorization
fn clone(&self) -> AclAuthorization
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more