pub struct LookupResourcesRequest {
pub consistency: Option<Consistency>,
pub resource_object_type: String,
pub permission: String,
pub subject: Option<SubjectReference>,
pub context: Option<Struct>,
pub optional_limit: u32,
pub optional_cursor: Option<Cursor>,
}
Expand description
LookupResourcesRequest performs a lookup of all resources of a particular kind on which the subject has the specified permission or the relation in which the subject exists, streaming back the IDs of those resources.
Fields§
§consistency: Option<Consistency>
§resource_object_type: String
resource_object_type is the type of resource object for which the IDs will be returned.
permission: String
permission is the name of the permission or relation for which the subject must Check.
subject: Option<SubjectReference>
subject is the subject with access to the resources.
context: Option<Struct>
context consists of named values that are injected into the caveat evaluation context
optional_limit: u32
optional_limit, if non-zero, specifies the limit on the number of resources to return before the stream is closed on the server side. By default, the stream will continue resolving resources until exhausted or the stream is closed due to the client or a network issue.
optional_cursor: Option<Cursor>
optional_cursor, if specified, indicates the cursor after which results should resume being returned. The cursor can be found on the LookupResourcesResponse object.
Trait Implementations§
Source§impl Clone for LookupResourcesRequest
impl Clone for LookupResourcesRequest
Source§fn clone(&self) -> LookupResourcesRequest
fn clone(&self) -> LookupResourcesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LookupResourcesRequest
impl Debug for LookupResourcesRequest
Source§impl Default for LookupResourcesRequest
impl Default for LookupResourcesRequest
Source§impl Message for LookupResourcesRequest
impl Message for LookupResourcesRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for LookupResourcesRequest
impl PartialEq for LookupResourcesRequest
impl StructuralPartialEq for LookupResourcesRequest
Auto Trait Implementations§
impl Freeze for LookupResourcesRequest
impl RefUnwindSafe for LookupResourcesRequest
impl Send for LookupResourcesRequest
impl Sync for LookupResourcesRequest
impl Unpin for LookupResourcesRequest
impl UnwindSafe for LookupResourcesRequest
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
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>
T
in a tonic::Request