pub struct CreateRelationshipBody {
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
CreateRelationshipBody : Create Relationship Request Body
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 CreateRelationshipBody
impl CreateRelationshipBody
sourcepub fn new() -> CreateRelationshipBody
pub fn new() -> CreateRelationshipBody
Create Relationship Request Body
Trait Implementations§
source§impl Clone for CreateRelationshipBody
impl Clone for CreateRelationshipBody
source§fn clone(&self) -> CreateRelationshipBody
fn clone(&self) -> CreateRelationshipBody
Returns a copy 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 CreateRelationshipBody
impl Debug for CreateRelationshipBody
source§impl Default for CreateRelationshipBody
impl Default for CreateRelationshipBody
source§impl<'de> Deserialize<'de> for CreateRelationshipBody
impl<'de> Deserialize<'de> for CreateRelationshipBody
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<CreateRelationshipBody> for CreateRelationshipBody
impl PartialEq<CreateRelationshipBody> for CreateRelationshipBody
source§fn eq(&self, other: &CreateRelationshipBody) -> bool
fn eq(&self, other: &CreateRelationshipBody) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for CreateRelationshipBody
impl Serialize for CreateRelationshipBody
impl StructuralPartialEq for CreateRelationshipBody
Auto Trait Implementations§
impl RefUnwindSafe for CreateRelationshipBody
impl Send for CreateRelationshipBody
impl Sync for CreateRelationshipBody
impl Unpin for CreateRelationshipBody
impl UnwindSafe for CreateRelationshipBody
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