Struct activitypub::object::properties::ApObjectProperties[][src]

pub struct ApObjectProperties {
    pub shares: Option<Value>,
    pub likes: Option<Value>,
    pub source: Option<Value>,
    pub upload_media: Option<Value>,
}

Define activitypub properties for the Object type as described by the Activity Pub vocabulary.

Fields

This is a list of all Announce activities with this object as the object property, added as a side effect.

The shares collection MUST be either an OrderedCollection or a Collection and MAY be filtered on privileges of an authenticated user or as appropriate when no authentication is given.

  • Range: anyUri
  • Functional: true

This is a list of all Like activities with this object as the object property, added as a side effect.

The likes collection MUST be either an OrderedCollection or a Collection and MAY be filtered on privileges of an authenticated user or as appropriate when no authentication is given.

  • Range: anyUri
  • Functional: true

The source property is intended to convey some sort of source from which the content markup was derived, as a form of provenance, or to support future editing by clients.

In general, clients do the conversion from source to content, not the other way around.

The value of source is itself an object which uses its own content and mediaType fields to supply source information.

  • Range: Object
  • Functional: true

Servers MAY support uploading document types to be referenced in activites, such as images, video or other binary data, but the precise mechanism is out of scope for this version of ActivityPub.

The Social Web Community Group is refining the protocol in the ActivityPub Media Upload report.

  • Range: anyUri
  • Functional: false

Methods

impl ApObjectProperties
[src]

Retrieve a value from the given struct

This method deserializes the item from JSON, so be wary of using this a lot.

Possible errors from this method are Error::NotFound and Error::Deserialize

Set a value in the given struct

This method serializes the item to JSON, so be wary of using this a lot.

Possible errors from this method are Error::Serialize

Retrieve a value from the given struct

This method deserializes the item from JSON, so be wary of using this a lot.

Possible errors from this method are Error::NotFound and Error::Deserialize

Set a value in the given struct

This method serializes the item to JSON, so be wary of using this a lot.

Possible errors from this method are Error::Serialize

Retrieve a value of type T from the given struct

This method deserializes the item from JSON, so be wary of using this a lot.

Possible errors from this method are Error::NotFound and Error::Deserialize

Set a value of type T in the given struct

This method serializes the item to JSON, so be wary of using this a lot.

Possible errors from this method are Error::Serialize

Retrieve a value from the given struct

This method deserializes the item from JSON, so be wary of using this a lot.

Possible errors from this method are Error::NotFound and Error::Deserialize

Set a value in the given struct

This method serializes the item to JSON, so be wary of using this a lot.

Possible errors from this method are Error::Serialize

Retrieve many values from the given struct

This method deserializes the item from JSON, so be wary of using this a lot.

Possible errors from this method are Error::NotFound and Error::Deserialize

Set many values in the given struct

This method serializes the item to JSON, so be wary of using this a lot.

Possible errors from this method are Error::Serialize

Trait Implementations

impl Clone for ApObjectProperties
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ApObjectProperties
[src]

Formats the value using the given formatter. Read more

impl Default for ApObjectProperties
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations