pub struct LookupSubjectsResponse {
pub looked_up_at: Option<ZedToken>,
pub subject_object_id: String,
pub excluded_subject_ids: Vec<String>,
pub permissionship: i32,
pub partial_caveat_info: Option<PartialCaveatInfo>,
pub subject: Option<ResolvedSubject>,
pub excluded_subjects: Vec<ResolvedSubject>,
pub after_result_cursor: Option<Cursor>,
}
Expand description
LookupSubjectsResponse contains a single matching subject object ID for the requested subject object type on the permission or relation.
Fields§
§looked_up_at: Option<ZedToken>
§subject_object_id: String
subject_object_id is the Object ID of the subject found. May be a *
if
a wildcard was found.
deprecated: use subject
excluded_subject_ids: Vec<String>
excluded_subject_ids are the Object IDs of the subjects excluded. This list
will only contain object IDs if subject_object_id
is a wildcard (*
) and
will only be populated if exclusions exist from the wildcard.
deprecated: use excluded_subjects
permissionship: i32
permissionship indicates whether the response was partially evaluated or not
deprecated: use subject.permissionship
partial_caveat_info: Option<PartialCaveatInfo>
partial_caveat_info holds information of a partially-evaluated caveated response
deprecated: use subject.partial_caveat_info
subject: Option<ResolvedSubject>
subject is the subject found, along with its permissionship.
excluded_subjects: Vec<ResolvedSubject>
excluded_subjects are the subjects excluded. This list
will only contain subjects if subject.subject_object_id
is a wildcard (*
) and
will only be populated if exclusions exist from the wildcard.
after_result_cursor: Option<Cursor>
after_result_cursor holds a cursor that can be used to resume the LookupSubjects stream after this result.
Implementations§
Source§impl LookupSubjectsResponse
impl LookupSubjectsResponse
Sourcepub fn permissionship(&self) -> LookupPermissionship
pub fn permissionship(&self) -> LookupPermissionship
Returns the enum value of permissionship
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_permissionship(&mut self, value: LookupPermissionship)
pub fn set_permissionship(&mut self, value: LookupPermissionship)
Sets permissionship
to the provided enum value.
Trait Implementations§
Source§impl Clone for LookupSubjectsResponse
impl Clone for LookupSubjectsResponse
Source§fn clone(&self) -> LookupSubjectsResponse
fn clone(&self) -> LookupSubjectsResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LookupSubjectsResponse
impl Debug for LookupSubjectsResponse
Source§impl Default for LookupSubjectsResponse
impl Default for LookupSubjectsResponse
Source§impl Message for LookupSubjectsResponse
impl Message for LookupSubjectsResponse
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 LookupSubjectsResponse
impl PartialEq for LookupSubjectsResponse
impl StructuralPartialEq for LookupSubjectsResponse
Auto Trait Implementations§
impl Freeze for LookupSubjectsResponse
impl RefUnwindSafe for LookupSubjectsResponse
impl Send for LookupSubjectsResponse
impl Sync for LookupSubjectsResponse
impl Unpin for LookupSubjectsResponse
impl UnwindSafe for LookupSubjectsResponse
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