[][src]Struct activitystreams::object::Relationship

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

Implementations

impl Relationship[src]

pub fn full() -> Ext<Relationship, ApObjectProperties>[src]

Generate a fully extended type

This effect can be achieved with Self::new().extend(SomeExtension::default())

impl Relationship[src]

pub fn new() -> Self[src]

Create from default

Trait Implementations

impl AsMut<ObjectProperties> for Relationship[src]

impl AsMut<RelationshipProperties> for Relationship[src]

impl AsRef<ObjectProperties> for Relationship[src]

impl AsRef<RelationshipProperties> for Relationship[src]

impl Base for Relationship[src]

impl Clone for Relationship[src]

impl Debug for Relationship[src]

impl Default for Relationship[src]

impl<'de> Deserialize<'de> for Relationship[src]

impl Object for Relationship[src]

impl Serialize for Relationship[src]

impl TryFrom<Relationship> for BaseBox[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Relationship> for ObjectBox[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T, U> Extensible<U> for T where
    T: Base,
    U: Extension<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.