Struct spicedb_rust::spicedb::RelationshipFilter
source · pub struct RelationshipFilter {
pub resource_type: String,
pub optional_resource_id: String,
pub optional_resource_id_prefix: String,
pub optional_relation: String,
pub optional_subject_filter: Option<SubjectFilter>,
}Expand description
RelationshipFilter is a collection of filters which when applied to a relationship will return relationships that have exactly matching fields.
All fields are optional and if left unspecified will not filter relationships, but at least one field must be specified.
NOTE: The performance of the API will be affected by the selection of fields on which to filter. If a field is not indexed, the performance of the API can be significantly slower.
Fields§
§resource_type: Stringresource_type is the optional resource type of the relationship. NOTE: It is not prefixed with “optional_” for legacy compatibility.
optional_resource_id: Stringoptional_resource_id is the optional resource ID of the relationship. If specified, optional_resource_id_prefix cannot be specified.
optional_resource_id_prefix: Stringoptional_resource_id_prefix is the optional prefix for the resource ID of the relationship. If specified, optional_resource_id cannot be specified.
optional_relation: Stringrelation is the optional relation of the relationship.
optional_subject_filter: Option<SubjectFilter>optional_subject_filter is the optional filter for the subjects of the relationships.
Trait Implementations§
source§impl Clone for RelationshipFilter
impl Clone for RelationshipFilter
source§fn clone(&self) -> RelationshipFilter
fn clone(&self) -> RelationshipFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RelationshipFilter
impl Debug for RelationshipFilter
source§impl Default for RelationshipFilter
impl Default for RelationshipFilter
source§impl Message for RelationshipFilter
impl Message for RelationshipFilter
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 RelationshipFilter
impl PartialEq for RelationshipFilter
impl StructuralPartialEq for RelationshipFilter
Auto Trait Implementations§
impl Freeze for RelationshipFilter
impl RefUnwindSafe for RelationshipFilter
impl Send for RelationshipFilter
impl Sync for RelationshipFilter
impl Unpin for RelationshipFilter
impl UnwindSafe for RelationshipFilter
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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