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

pub struct Relationship { /* 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.

Implementations

impl Relationship[src]

pub fn new() -> Self[src]

Create a new ActivityPub Object

use activitystreams::object::Relationship;

let object = Relationship::new();

Trait Implementations

impl AsBase<RelationshipType> for Relationship[src]

impl AsObject<RelationshipType> for Relationship[src]

impl AsRelationship for Relationship[src]

impl Base for Relationship[src]

impl Clone for Relationship[src]

impl Debug for Relationship[src]

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

impl Extends<RelationshipType> for Relationship[src]

type Error = Error

The erro produced must be a StdError

impl Object for Relationship[src]

impl Serialize for Relationship[src]

impl TryFrom<Object<RelationshipType>> for Relationship[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Relationship> for Object<RelationshipType>[src]

type Error = Error

The type returned in the event of a conversion error.

impl UnparsedMut for Relationship[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T, Kind> BaseExt<Kind> for T where
    T: AsBase<Kind>, 
[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, Kind> ExtendsExt<Kind> for T where
    T: Extends<Kind>,
    <T as Extends<Kind>>::Error: From<Error>, 
[src]

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

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

impl<T, Kind> ObjectExt<Kind> for T where
    T: AsObject<Kind>, 
[src]

impl<T> RelationshipExt for T where
    T: AsRelationship
[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.

impl<T> UnparsedMutExt for T where
    T: UnparsedMut
[src]