pub struct Relationship {
pub object_props: ObjectProperties,
pub relationship: RelationshipProperties,
/* private fields */
}Expand description
Describes a relationship between two individuals.
The subject and object properties are used to identify the connected individuals.
The Relationship object is used to represent relationships between individuals. It can be
used, for instance, to describe that one person is a friend of another, or that one person is a
member of a particular organization. The intent of modeling Relationship in this way is to allow
descriptions of activities that operate on the relationships in general, and to allow
representation of Collections of relationships.
For instance, many social systems have a notion of a “friends list”. These are the collection of individuals that are directly connected within a person’s social graph. Suppose we have a user, Sally, with direct relationships to users Joe and Jane. Sally follows Joe’s updates while Sally and Jane have a mutual relationship.
Fields§
§object_props: ObjectPropertiesAdds all valid object properties to this struct
relationship: RelationshipPropertiesAdds all valid relationship properties to this struct
Trait Implementations§
Source§impl Clone for Relationship
impl Clone for Relationship
Source§fn clone(&self) -> Relationship
fn clone(&self) -> Relationship
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more