pub struct Collection {Show 52 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>,
pub total_items: Option<u64>,
pub current: Option<AnyCollectionPage>,
pub first: Option<AnyCollectionPage>,
pub last: Option<AnyCollectionPage>,
pub items: Vec<LinkOrObject>,
pub likes_of: Option<AnyObject>,
pub shares_of: Option<AnyObject>,
pub replies_of: Option<AnyObject>,
pub inbox_of: Option<AnyObject>,
pub outbox_of: Option<AnyObject>,
pub followers_of: Option<AnyObject>,
pub following_of: Option<AnyObject>,
pub liked_of: Option<AnyObject>,
}Expand description
A Collection is a subtype of {@link Object} that represents ordered or
unordered sets of {@link Object} or {@link Link} instances.
The type https://www.w3.org/ns/activitystreams#Collection.
Fields§
§id: Option<Iri>The IRI that identifies this object.
attachments: Vec<LinkOrObjectOrPropertyValue>See Object::attachments.
attributions: Vec<AnyActor>See Object::attributions.
audiences: Vec<AnyObject>See Object::audiences.
content: TextSee Object::content.
contexts: Vec<LinkOrObject>See Object::contexts.
name: TextSee Object::name.
end_time: Option<String>See Object::end_time.
generators: Vec<LinkOrObject>See Object::generators.
icons: Vec<Reference<Image>>See Object::icons.
images: Vec<Reference<Image>>See Object::images.
reply_targets: Vec<LinkOrObject>§locations: Vec<LinkOrObject>See Object::locations.
previews: Vec<LinkOrObject>See Object::previews.
published: Option<String>See Object::published.
replies: Option<AnyCollection>See Object::replies.
See Object::shares.
likes: Option<AnyCollection>See Object::likes.
emoji_reactions: Option<AnyCollection>§start_time: Option<String>See Object::start_time.
summary: TextSee Object::summary.
See Object::tags.
updated: Option<String>See Object::updated.
urls: Vec<LinkOrIri>See Object::urls.
tos: Vec<AnyObject>See Object::tos.
btos: Vec<AnyObject>See Object::btos.
ccs: Vec<AnyObject>See Object::ccs.
bccs: Vec<AnyObject>See Object::bccs.
media_type: Option<String>See Object::media_type.
duration: Option<String>See Object::duration.
sensitive: Option<bool>See Object::sensitive.
source: Option<Box<Source>>See Object::source.
proofs: Vec<Reference<DataIntegrityProof>>See Object::proofs.
interaction_policy: Option<Box<InteractionPolicy>>§approved_by: Option<Iri>See Object::approved_by.
translations: Vec<Translation>See Object::translations.
total_items: Option<u64>A non-negative integer specifying the total number of objects contained by the logical view of the collection. This number might not reflect the actual number of items serialized within the {@link Collection} object instance.
current: Option<AnyCollectionPage>In a paged {@link Collection}, indicates the page that contains the most recently updated member items.
first: Option<AnyCollectionPage>In a paged {@link Collection}, indicates the furthest preceding page of items in the collection.
last: Option<AnyCollectionPage>In a paged {@link Collection}, indicates the furthest proceeding page of the collection.
items: Vec<LinkOrObject>Identifies the items contained in a collection. The items might be ordered or unordered.
likes_of: Option<AnyObject>Defines an object for which the collection is the value of the likes property.
Defines an object for which the collection is the value of the shares property.
replies_of: Option<AnyObject>Defines an object for which the collection is the value of the replies property.
inbox_of: Option<AnyObject>Defines an actor for which the collection is the value of the inbox property.
outbox_of: Option<AnyObject>Defines an actor for which the collection is the value of the outbox property.
followers_of: Option<AnyObject>Defines an actor for which the collection is the value of the followers property.
following_of: Option<AnyObject>Defines an actor for which the collection is the value of the following property.
liked_of: Option<AnyObject>Defines an actor for which the collection is the value of the liked property.
Implementations§
Trait Implementations§
Source§impl Clone for Collection
impl Clone for Collection
Source§fn clone(&self) -> Collection
fn clone(&self) -> Collection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more