Struct activitystreams_types::object::Relationship [−][src]
pub struct Relationship {
pub object_props: ObjectProperties,
pub relationship: RelationshipProperties,
// some fields omitted
}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: ObjectProperties
Adds all valid object properties to this struct
relationship: RelationshipProperties
Adds all valid relationship properties to this struct
Trait Implementations
impl Clone for Relationship[src]
impl Clone for Relationshipfn clone(&self) -> Relationship[src]
fn clone(&self) -> RelationshipReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for Relationship[src]
impl Debug for Relationshipfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for Relationship[src]
impl Default for Relationshipfn default() -> Relationship[src]
fn default() -> RelationshipReturns the "default value" for a type. Read more
impl Object for Relationship[src]
impl Object for Relationshipimpl ObjectExt for Relationship[src]
impl ObjectExt for Relationshipfn props(&self) -> &ObjectProperties[src]
fn props(&self) -> &ObjectPropertiesfn props_mut(&mut self) -> &mut ObjectProperties[src]
fn props_mut(&mut self) -> &mut ObjectPropertiesAuto Trait Implementations
impl Send for Relationship
impl Send for Relationshipimpl Sync for Relationship
impl Sync for Relationship