pub struct Object {Show 39 fields
pub id: Option<Iri>,
pub attachments: Vec<LinkOrObjectOrPropertyValue>,
pub attributions: Vec<AnyActor>,
pub audiences: Vec<AnyObject>,
pub content: Text,
pub contexts: Vec<LinkOrObject>,
pub name: Text,
pub end_time: Option<String>,
pub generators: Vec<LinkOrObject>,
pub icons: Vec<Reference<Image>>,
pub images: Vec<Reference<Image>>,
pub reply_targets: Vec<LinkOrObject>,
pub locations: Vec<LinkOrObject>,
pub previews: Vec<LinkOrObject>,
pub published: Option<String>,
pub replies: Option<AnyCollection>,
pub shares: Option<AnyCollection>,
pub likes: Option<AnyCollection>,
pub emoji_reactions: Option<AnyCollection>,
pub start_time: Option<String>,
pub summary: Text,
pub tags: Vec<LinkOrObject>,
pub updated: Option<String>,
pub urls: Vec<LinkOrIri>,
pub tos: Vec<AnyObject>,
pub btos: Vec<AnyObject>,
pub ccs: Vec<AnyObject>,
pub bccs: Vec<AnyObject>,
pub media_type: Option<String>,
pub duration: Option<String>,
pub sensitive: Option<bool>,
pub source: Option<Box<Source>>,
pub proofs: Vec<Reference<DataIntegrityProof>>,
pub interaction_policy: Option<Box<InteractionPolicy>>,
pub approved_by: Option<Iri>,
pub like_authorization: Option<Reference<LikeAuthorization>>,
pub reply_authorization: Option<Reference<ReplyAuthorization>>,
pub announce_authorization: Option<Reference<AnnounceAuthorization>>,
pub translations: Vec<Translation>,
}Expand description
Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as {@link Activity}, {@link IntransitiveActivity}, {@link Collection} and {@link OrderedCollection}.
The type https://www.w3.org/ns/activitystreams#Object.
Fields§
§id: Option<Iri>The IRI that identifies this object.
attachments: Vec<LinkOrObjectOrPropertyValue>Identifies a resource attached or related to an object that potentially requires special handling. The intent is to provide a model that is at least semantically similar to attachments in email.
attributions: Vec<AnyActor>Identifies one or more entities to which this object is attributed. The attributed entities might not be Actors. For instance, an object might be attributed to the completion of another activity.
audiences: Vec<AnyObject>Identifies one or more entities that represent the total population of entities for which the object can considered to be relevant.
content: TextThe content or textual representation of the Object encoded as a JSON
string. By default, the value of content is HTML. The mediaType
property can be used in the object to indicate a different content type.
contexts: Vec<LinkOrObject>Identifies the context within which the object exists or an activity was performed.
name: TextA simple, human-readable, plain-text name for the object. HTML markup MUST NOT be included. The name MAY be expressed using multiple language-tagged values.
end_time: Option<String>The date and time describing the actual or expected ending time of the object. When used with an {@link Activity} object, for instance, the `endTime`` property specifies the moment the activity concluded or is expected to conclude.
generators: Vec<LinkOrObject>Identifies the entity (e.g. an application) that generated the object.
icons: Vec<Reference<Image>>Indicates an entity that describes an icon for this object. The image should have an aspect ratio of one (horizontal) to one (vertical) and should be suitable for presentation at a small size.
images: Vec<Reference<Image>>Indicates an entity that describes an image for this object. Unlike the icon property, there are no aspect ratio or display size limitations assumed.
reply_targets: Vec<LinkOrObject>Indicates one or more entities for which this object is considered a response.
locations: Vec<LinkOrObject>Indicates one or more physical or logical locations associated with the object.
previews: Vec<LinkOrObject>Identifies an entity that provides a preview of this object.
published: Option<String>The date and time at which the object was published.
replies: Option<AnyCollection>Identifies a {@link Collection} containing objects considered to be responses to this object.
Every object may have a shares collection. This is a list of all
{@link Announce} activities with this object as the object property,
added as a side effect. The shares collection must be either
an {@link OrderedCollection} or a {@link Collection} and may be filtered
on privileges of an authenticated user or as appropriate
when no authentication is given.
likes: Option<AnyCollection>Every object may have a likes collection. This is a list of all
{@link Like} activities with this object as the object property,
added as a side effect. The likes collection must be either
an {@link OrderedCollection} or a {@link Collection} and may be filtered
on privileges of an authenticated user or as appropriate
when no authentication is given.
emoji_reactions: Option<AnyCollection>Identifies a {@link Collection} containing objects considered to be emoji reactions to this object.
start_time: Option<String>The date and time describing the actual or expected starting time of
the object. When used with an {@link Activity} object, for instance,
the startTime property specifies the moment the activity began or
is scheduled to begin.
summary: TextA natural language summarization of the object encoded as HTML. Multiple language tagged summaries MAY be provided.
One or more “tags” that have been associated with an objects.
A tag can be any kind of Object. The key difference between attachment
and tag is that the former implies association by inclusion,
while the latter implies associated by reference.
updated: Option<String>The date and time at which the object was updated.
urls: Vec<LinkOrIri>Identifies one or more links to representations of the object.
tos: Vec<AnyObject>Identifies an entity considered to be part of the public primary audience of an Object.
btos: Vec<AnyObject>Identifies an Object that is part of the private primary audience of this Object.
ccs: Vec<AnyObject>Identifies an Object that is part of the public secondary audience of this Object.
bccs: Vec<AnyObject>Identifies one or more Objects that are part of the private secondary audience of this Object.
media_type: Option<String>When used on an {@link Object}, identifies the MIME media type of the value
of the content property. If not specified, the content property is
assumed to contain text/html content.
duration: Option<String>When the object describes a time-bound resource, such as an audio or video,
a meeting, etc, the duration property indicates the object’s approximate
duration. The value MUST be expressed as an xsd:duration as defined by
W3C XML Schema Definition Language (XSD) 1.1 Part 2: DataTypes, section
3.3.6 (e.g. a period of 5 seconds is represented as PT5S).
sensitive: Option<bool>Whether it contains any sensitive contents.
source: Option<Box<Source>>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.
proofs: Vec<Reference<DataIntegrityProof>>A cryptographic proof that can be used to verify the integrity of an object.
interaction_policy: Option<Box<InteractionPolicy>>The interaction policy for this object, specifying who can like, reply to,
announce, or quote it. Contains sub-policies (canLike, canReply,
canAnnounce, canQuote) each defining automaticApproval and
manualApproval lists.
approved_by: Option<Iri>A URI referencing an authorization object that proves this interaction was approved by the target post’s author.
A {@link LikeAuthorization} object that proves this like interaction was approved by the target post’s author.
A {@link ReplyAuthorization} object that proves this reply was approved by the target post’s author.
An {@link AnnounceAuthorization} object that proves this announce (boost) was approved by the target post’s author.
translations: Vec<Translation>Translation metadata for the language versions in this object’s content, name, or summary maps, as defined by the draft FEP-22cd. Each entry describes one translated language; directly authored languages have no entry. The entries share this object’s identity, replies, and reactions. Translator credit grants no authority to update the object.