pub struct Explanation {
pub subject: Subject,
pub permission: String,
pub resource: Resource,
pub effective: Vec<String>,
pub path: Vec<Anchor>,
pub roles: Vec<String>,
pub overrides: Vec<OverrideStep>,
pub grants: Vec<GrantTrace>,
pub strategy: String,
pub decision: Decision,
}Fields§
§subject: Subject§permission: String§resource: Resource§effective: Vec<String>The requested permission and the ones that grant it. Empty if the permission is not in the catalog.
path: Vec<Anchor>Steps of the resource with the implicit global at the end. The position is the rank.
roles: Vec<String>Roles of the subject that hold for the resource, including inherited ones.
overrides: Vec<OverrideStep>§grants: Vec<GrantTrace>All the grants the source delivered, in its order.
strategy: String§decision: DecisionImplementations§
Source§impl Explanation
impl Explanation
Sourcepub fn decisive(&self) -> Option<&GrantTrace>
pub fn decisive(&self) -> Option<&GrantTrace>
The grant that decided, if a grant did.
pub fn candidates(&self) -> impl Iterator<Item = &GrantTrace>
Trait Implementations§
Source§impl Clone for Explanation
impl Clone for Explanation
Source§impl Debug for Explanation
impl Debug for Explanation
Source§impl<'de> Deserialize<'de> for Explanation
impl<'de> Deserialize<'de> for Explanation
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
Source§impl PartialEq for Explanation
impl PartialEq for Explanation
Source§impl Serialize for Explanation
impl Serialize for Explanation
impl StructuralPartialEq for Explanation
Auto Trait Implementations§
impl Forget for Explanation
impl Freeze for Explanation
impl Move for Explanation
impl RefUnwindSafe for Explanation
impl Send for Explanation
impl Sync for Explanation
impl Unpin for Explanation
impl UnsafeUnpin for Explanation
impl UnwindSafe for Explanation
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