pub struct Query {
pub subjects: BTreeSet<ObjectRef>,
pub relations: BTreeSet<String>,
pub action: String,
pub objects: Vec<ObjectRef>,
pub expand_relations: Vec<String>,
pub limits: Limits,
}Expand description
The request side of a check: the subjects a principal expands to, the relations to look for, and the objects to look on.
Fields§
§subjects: BTreeSet<ObjectRef>Subjects the principal expands to (user:alice, role:admin, …).
relations: BTreeSet<String>Relations that satisfy the action, from the permission map.
action: StringAction name, for the denial message.
objects: Vec<ObjectRef>Objects the access targets; any one granting is enough.
expand_relations: Vec<String>Relations a plain (non-userset) group subject is expanded through.
limits: LimitsSearch bounds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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