pub struct AccessControlParams {
pub subject_eids: FnvHashMap<AnyId, AnyId>,
pub subject_attrs: FnvHashSet<AnyId>,
pub resource_eids: FnvHashMap<AnyId, AnyId>,
pub resource_attrs: FnvHashSet<AnyId>,
}
Expand description
The parameters to an policy-based access control evaluation.
The access control paramaters generall consists of attributes related to a subject
and a resource
.
The subject
represents the entity or entities requesting access.
The resource
is a representation of the abstract object being requested.
Fields§
§subject_eids: FnvHashMap<AnyId, AnyId>
Entity IDs related to the subject
.
subject_attrs: FnvHashSet<AnyId>
Attributes related to the subject
.
resource_eids: FnvHashMap<AnyId, AnyId>
Entity IDs related to the resource
.
resource_attrs: FnvHashSet<AnyId>
Attributes related to the resource
.
Trait Implementations§
Source§impl Debug for AccessControlParams
impl Debug for AccessControlParams
Source§impl Default for AccessControlParams
impl Default for AccessControlParams
Source§fn default() -> AccessControlParams
fn default() -> AccessControlParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AccessControlParams
impl RefUnwindSafe for AccessControlParams
impl Send for AccessControlParams
impl Sync for AccessControlParams
impl Unpin for AccessControlParams
impl UnwindSafe for AccessControlParams
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request