Skip to main content

Organization

Struct Organization 

Source
pub struct Organization {
Show 65 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 preferred_username: Text, pub public_keys: Vec<Reference<CryptographicKey>>, pub assertion_methods: Vec<Reference<Multikey>>, pub gateways: Vec<Iri>, pub manually_approves_followers: Option<bool>, pub inbox: Option<OrderedCollectionOrOrderedCollectionPage>, pub outbox: Option<OrderedCollectionOrOrderedCollectionPage>, pub following: Option<AnyCollection>, pub followers: Option<AnyCollection>, pub liked: Option<AnyCollection>, pub featured: Option<AnyCollection>, pub featured_tags: Option<AnyCollection>, pub featured_collections: Option<AnyCollection>, pub streams: Vec<AnyCollection>, pub endpoints: Option<Box<Endpoints>>, pub discoverable: Option<bool>, pub suspended: Option<bool>, pub memorial: Option<bool>, pub indexable: Option<bool>, pub successor: Option<AnyActor>, pub aliases: Vec<AnyActor>, pub services: Vec<AnyDidService>, pub followed_message: Option<String>, pub cat: Option<bool>, pub webfinger: Option<String>, pub shared_inbox: Option<Iri>,
}
Expand description

Represents an organization.

The type https://www.w3.org/ns/activitystreams#Organization.

Fields§

§id: Option<Iri>

The IRI that identifies this object.

§attachments: Vec<LinkOrObjectOrPropertyValue>§attributions: Vec<AnyActor>§audiences: Vec<AnyObject>§content: Text§contexts: Vec<LinkOrObject>§name: Text§end_time: Option<String>§generators: Vec<LinkOrObject>§icons: Vec<Reference<Image>>§images: Vec<Reference<Image>>§reply_targets: Vec<LinkOrObject>§locations: Vec<LinkOrObject>§previews: Vec<LinkOrObject>§published: Option<String>§replies: Option<AnyCollection>§shares: Option<AnyCollection>§likes: Option<AnyCollection>§emoji_reactions: Option<AnyCollection>§start_time: Option<String>§summary: Text§tags: Vec<LinkOrObject>§updated: Option<String>§urls: Vec<LinkOrIri>§tos: Vec<AnyObject>§btos: Vec<AnyObject>§ccs: Vec<AnyObject>§bccs: Vec<AnyObject>§media_type: Option<String>§duration: Option<String>§sensitive: Option<bool>§source: Option<Box<Source>>§proofs: Vec<Reference<DataIntegrityProof>>§interaction_policy: Option<Box<InteractionPolicy>>§approved_by: Option<Iri>§like_authorization: Option<Reference<LikeAuthorization>>§reply_authorization: Option<Reference<ReplyAuthorization>>§announce_authorization: Option<Reference<AnnounceAuthorization>>§translations: Vec<Translation>§preferred_username: Text

A short username which may be used to refer to the actor, with no uniqueness guarantees.

§public_keys: Vec<Reference<CryptographicKey>>

A public part of the key pair owned by this actor.

§assertion_methods: Vec<Reference<Multikey>>

Represents this actor’s public keys. It serves as equivalent to the publicKeys property, but is used for FEP-521a compliance.

§gateways: Vec<Iri>

Gateways where the latest version of this portable actor object can be retrieved.

§manually_approves_followers: Option<bool>

When true, conveys that for this actor, follow requests are not usually automatically approved, but instead are examined by a person who may accept or reject the request, at some time in the future. Setting of false conveys no information and may be ignored. This information is typically used to affect display of accounts, such as showing an account as private or locked.

§inbox: Option<OrderedCollectionOrOrderedCollectionPage>

The inbox stream contains all activities received by the actor. The server SHOULD filter content according to the requester’s permission. In general, the owner of an inbox is likely to be able to access all of their inbox contents. Depending on access control, some other content may be public, whereas other content may require authentication for non-owner users, if they can access the inbox at all.

§outbox: Option<OrderedCollectionOrOrderedCollectionPage>

The outbox stream contains activities the user has published, subject to the ability of the requestor to retrieve the activity (that is, the contents of the outbox are filtered by the permissions of the person reading it). If a user submits a request without Authorization the server should respond with all of the Public posts. This could potentially be all relevant objects published by the user, though the number of available items is left to the discretion of those implementing and deploying the server.

§following: Option<AnyCollection>

This is a list of everybody that the actor has followed, added as a side effect. The following 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.

§followers: Option<AnyCollection>

This is a list of everyone who has sent a {@link Follow} activity for the actor, added as a side effect. This is where one would find a list of all the actors that are following the actor. The followers 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.

§liked: Option<AnyCollection>

This is a list of every object from all of the actor’s {@link Like} activities, added as a side effect. The liked 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.

§featured: Option<AnyCollection>

What is known in Mastodon as “pinned statuses”, or statuses that are always featured at the top of people’s profiles, is implemented using an extra property featured on the actor object that points to a {@link Collection} of objects.

§featured_tags: Option<AnyCollection>

What is known in Mastodon as “featured hashtags”, hashtags that are featured at people’s profiles, is implemented using an extra property featuredTags on the actor object that points to a {@link Collection} of {@link Hashtag} objects specifically.

§featured_collections: Option<AnyCollection>

A collection of {@link FeaturedCollection}s created by this actor.

§streams: Vec<AnyCollection>

A list of supplementary Collections which may be of interest.

§endpoints: Option<Box<Endpoints>>

A JSON object which maps additional (typically server/domain-wide) endpoints which may be useful either for this actor or someone referencing this actor. This mapping may be nested inside the actor document as the value or may be a link to a JSON-LD document with these properties.

§discoverable: Option<bool>

Allows users to opt-in or opt-out of discoverability features like the profile directory. This flag may also be used as an indicator of the user’s preferences toward being included in external discovery services, such as search engines or other indexing tools.

§suspended: Option<bool>

Reports whether a user was locally suspended, for better handling of these accounts.

§memorial: Option<bool>

Whether the actor is in-memorial state.

§indexable: Option<bool>

Whether the actor allows to be indexed.

§successor: Option<AnyActor>

Signifies that an actor has been moved to a different ID. Used in Mastodon-style data portability with the {@link Move} activity; see ActivityPub Data Portability/Move Action for more details.

§aliases: Vec<AnyActor>

The aliases (alsoKnownAs) property is used to specify alternative names or aliases for an entity. It can be used to provide additional identifiers or labels for an entity, which can be useful in scenarios where an entity may have multiple names or aliases.

§services: Vec<AnyDidService>

Means of communicating or interacting with the DID subject or associated entities via one or more service endpoints. Examples include discovery services, agent services, social networking services, file storage services, and verifiable credential repository services.

§followed_message: Option<String>

This value is used for Actor type objects to show message on followed.

§cat: Option<bool>

Used on actors to indicate that they in some way identify as a cat, expressed as a boolean value. If this property is set to true, displaying the actor or their notes will have some special effects attached in some clients.

§webfinger: Option<String>

The actor’s WebFinger handle, user@host (FEP-2c59).

§shared_inbox: Option<Iri>

The shared inbox, where Misskey writes it: on the actor rather than in its endpoints. Prefer endpoints.sharedInbox when both are there.

Implementations§

Source§

impl Organization

Source

pub const TYPE_IRI: &'static str = "https://www.w3.org/ns/activitystreams#Organization"

The type’s IRI.

Source

pub const TYPE: &'static str = "Organization"

The type’s type in a normalised document.

Trait Implementations§

Source§

impl Clone for Organization

Source§

fn clone(&self) -> Organization

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Organization

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Organization

Source§

fn default() -> Organization

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Organization

Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl FromJson for Organization

Source§

fn from_json(value: &Value) -> Result<Self, JsonError>

Read value. Read more
Source§

impl PartialEq for Organization

Source§

fn eq(&self, other: &Organization) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Organization

Source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Organization

Source§

impl ToJson for Organization

Source§

fn to_json(&self) -> Value

Write self.
Source§

impl Typed for Organization

Source§

const TYPE: &'static str = "Organization"

The type’s type in a normalised document, such as Create.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.