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: String
resource_type is the optional resource type of the relationship. NOTE: It is not prefixed with “optional_” for legacy compatibility.
optional_resource_id: String
optional_resource_id is the optional resource ID of the relationship. If specified, optional_resource_id_prefix cannot be specified.
optional_resource_id_prefix: String
optional_resource_id_prefix is the optional prefix for the resource ID of the relationship. If specified, optional_resource_id cannot be specified.
optional_relation: String
relation 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§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