pub struct RelationQuery {
pub namespace: Option<String>,
pub object: Option<String>,
pub relation: Option<String>,
pub subject_id: Option<String>,
pub subject_set: Option<Box<SubjectSet>>,
}Expand description
RelationQuery : Relation Query
Fields§
§namespace: Option<String>Namespace to query
object: Option<String>Object to query
relation: Option<String>Relation to query
subject_id: Option<String>SubjectID to query Either SubjectSet or SubjectID can be provided.
subject_set: Option<Box<SubjectSet>>Implementations§
Source§impl RelationQuery
impl RelationQuery
Sourcepub fn new() -> RelationQuery
pub fn new() -> RelationQuery
Relation Query
Trait Implementations§
Source§impl Clone for RelationQuery
impl Clone for RelationQuery
Source§fn clone(&self) -> RelationQuery
fn clone(&self) -> RelationQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RelationQuery
impl Debug for RelationQuery
Source§impl Default for RelationQuery
impl Default for RelationQuery
Source§fn default() -> RelationQuery
fn default() -> RelationQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RelationQuery
impl<'de> Deserialize<'de> for RelationQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RelationQuery
impl PartialEq for RelationQuery
Source§impl Serialize for RelationQuery
impl Serialize for RelationQuery
impl StructuralPartialEq for RelationQuery
Auto Trait Implementations§
impl Freeze for RelationQuery
impl RefUnwindSafe for RelationQuery
impl Send for RelationQuery
impl Sync for RelationQuery
impl Unpin for RelationQuery
impl UnwindSafe for RelationQuery
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