[−][src]Struct activitystreams::object::Relationship
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]
Trait Implementations
impl AsMut<ObjectProperties> for Relationship
[src]
fn as_mut(&mut self) -> &mut ObjectProperties
[src]
impl AsMut<RelationshipProperties> for Relationship
[src]
fn as_mut(&mut self) -> &mut RelationshipProperties
[src]
impl AsRef<ObjectProperties> for Relationship
[src]
fn as_ref(&self) -> &ObjectProperties
[src]
impl AsRef<RelationshipProperties> for Relationship
[src]
fn as_ref(&self) -> &RelationshipProperties
[src]
impl Base for Relationship
[src]
impl Clone for Relationship
[src]
fn clone(&self) -> Relationship
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Relationship
[src]
impl Default for Relationship
[src]
fn default() -> Relationship
[src]
impl<'de> Deserialize<'de> for Relationship
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Object for Relationship
[src]
impl Serialize for Relationship
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl TryFrom<Relationship> for BaseBox
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(s: Relationship) -> Result<Self, Self::Error>
[src]
impl TryFrom<Relationship> for ObjectBox
[src]
Auto Trait Implementations
impl RefUnwindSafe for Relationship
impl Send for Relationship
impl Sync for Relationship
impl Unpin for Relationship
impl UnwindSafe for Relationship
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T, U> Extensible<U> for T where
T: Base,
U: Extension<T>,
[src]
T: Base,
U: Extension<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,