pub struct AuthorizationRequest {
pub person: Person,
pub action: String,
pub resource: String,
pub ancestors: Vec<String>,
}Expand description
A resource-scoped authorization request.
Fields§
§person: PersonPerson returned by the authoritative directory.
action: StringRequested operation, such as document.read.
resource: StringResource identifier in the host’s own scheme, such as site:north, or * for the
whole service.
ancestors: Vec<String>The resources resource sits under in the host’s own hierarchy, nearest first, such
as ["site:europe", "site:world"] for site:north; empty when it has none. An
authorizer may let a grant on one of them reach resource.
Trait Implementations§
Source§impl Clone for AuthorizationRequest
impl Clone for AuthorizationRequest
Source§impl Debug for AuthorizationRequest
impl Debug for AuthorizationRequest
Source§impl Default for AuthorizationRequest
impl Default for AuthorizationRequest
impl Eq for AuthorizationRequest
Source§impl FromValue for AuthorizationRequest
impl FromValue for AuthorizationRequest
Source§const KINDS: Kinds = ::guatiao::Kinds::MAP
const KINDS: Kinds = ::guatiao::Kinds::MAP
The kinds
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.Source§fn from_value(__value: &Value) -> Result<Self, MapError>
fn from_value(__value: &Value) -> Result<Self, MapError>
Performs the conversion. Read more
Source§impl FromWalk for AuthorizationRequest
impl FromWalk for AuthorizationRequest
Source§impl MapRead for AuthorizationRequest
impl MapRead for AuthorizationRequest
Source§impl PartialEq for AuthorizationRequest
impl PartialEq for AuthorizationRequest
Source§impl Schema for AuthorizationRequest
impl Schema for AuthorizationRequest
impl StructuralPartialEq for AuthorizationRequest
Source§impl ToValue for AuthorizationRequest
impl ToValue for AuthorizationRequest
Auto Trait Implementations§
impl Freeze for AuthorizationRequest
impl RefUnwindSafe for AuthorizationRequest
impl Send for AuthorizationRequest
impl Sync for AuthorizationRequest
impl Unpin for AuthorizationRequest
impl UnsafeUnpin for AuthorizationRequest
impl UnwindSafe for AuthorizationRequest
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