Struct ory_client::models::relationship::Relationship
source · pub struct Relationship {
pub namespace: String,
pub object: String,
pub relation: String,
pub subject_id: Option<String>,
pub subject_set: Option<Box<SubjectSet>>,
}
Expand description
Relationship : Relationship
Fields§
§namespace: String
Namespace of the Relation Tuple
object: String
Object of the Relation Tuple
relation: String
Relation of the Relation Tuple
subject_id: Option<String>
SubjectID of the Relation Tuple Either SubjectSet or SubjectID can be provided.
subject_set: Option<Box<SubjectSet>>
Implementations§
source§impl Relationship
impl Relationship
Trait Implementations§
source§impl Clone for Relationship
impl Clone for Relationship
source§fn clone(&self) -> Relationship
fn clone(&self) -> Relationship
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 Relationship
impl Debug for Relationship
source§impl<'de> Deserialize<'de> for Relationship
impl<'de> Deserialize<'de> for Relationship
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<Relationship> for Relationship
impl PartialEq<Relationship> for Relationship
source§fn eq(&self, other: &Relationship) -> bool
fn eq(&self, other: &Relationship) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.