Skip to main content

LinkOrObjectOrPropertyValue

Enum LinkOrObjectOrPropertyValue 

Source
pub enum LinkOrObjectOrPropertyValue {
Show 75 variants Iri(Iri), Accept(Box<Accept>), Activity(Box<Activity>), Add(Box<Add>), Agreement(Box<Agreement>), Announce(Box<Announce>), AnnounceAuthorization(Box<AnnounceAuthorization>), AnnounceRequest(Box<AnnounceRequest>), Application(Box<Application>), Arrive(Box<Arrive>), Article(Box<Article>), Audio(Box<Audio>), Block(Box<Block>), ChatMessage(Box<ChatMessage>), Collection(Box<Collection>), CollectionPage(Box<CollectionPage>), Create(Box<Create>), Delete(Box<Delete>), Dislike(Box<Dislike>), Document(Box<Document>), Emoji(Box<Emoji>), EmojiReact(Box<EmojiReact>), Event(Box<Event>), FeatureAuthorization(Box<FeatureAuthorization>), FeatureRequest(Box<FeatureRequest>), FeaturedCollection(Box<FeaturedCollection>), FeaturedItem(Box<FeaturedItem>), Flag(Box<Flag>), Follow(Box<Follow>), Group(Box<Group>), Hashtag(Box<Hashtag>), Ignore(Box<Ignore>), Image(Box<Image>), IntransitiveActivity(Box<IntransitiveActivity>), Invite(Box<Invite>), Join(Box<Join>), Leave(Box<Leave>), Like(Box<Like>), LikeAuthorization(Box<LikeAuthorization>), LikeRequest(Box<LikeRequest>), Link(Box<Link>), Listen(Box<Listen>), Mention(Box<Mention>), Move(Box<Move>), Note(Box<Note>), Object(Box<Object>), Offer(Box<Offer>), OrderedCollection(Box<OrderedCollection>), OrderedCollectionPage(Box<OrderedCollectionPage>), Organization(Box<Organization>), Page(Box<Page>), Person(Box<Person>), Place(Box<Place>), Profile(Box<Profile>), PropertyValue(Box<PropertyValue>), Proposal(Box<Proposal>), Question(Box<Question>), QuoteAuthorization(Box<QuoteAuthorization>), QuoteRequest(Box<QuoteRequest>), Read(Box<Read>), Reject(Box<Reject>), Relationship(Box<Relationship>), Remove(Box<Remove>), ReplyAuthorization(Box<ReplyAuthorization>), ReplyRequest(Box<ReplyRequest>), Service(Box<Service>), TentativeAccept(Box<TentativeAccept>), TentativeReject(Box<TentativeReject>), Tombstone(Box<Tombstone>), Travel(Box<Travel>), Undo(Box<Undo>), Update(Box<Update>), Video(Box<Video>), View(Box<View>), Other(Value),
}
Expand description

A value of PropertyValue, Link, Object, or of a type extending one of them.

Variants§

§

Iri(Iri)

A reference, by IRI.

§

Accept(Box<Accept>)

§

Activity(Box<Activity>)

§

Add(Box<Add>)

§

Agreement(Box<Agreement>)

§

Announce(Box<Announce>)

§

AnnounceAuthorization(Box<AnnounceAuthorization>)

§

AnnounceRequest(Box<AnnounceRequest>)

§

Application(Box<Application>)

§

Arrive(Box<Arrive>)

§

Article(Box<Article>)

§

Audio(Box<Audio>)

§

Block(Box<Block>)

§

ChatMessage(Box<ChatMessage>)

§

Collection(Box<Collection>)

§

CollectionPage(Box<CollectionPage>)

§

Create(Box<Create>)

§

Delete(Box<Delete>)

§

Dislike(Box<Dislike>)

§

Document(Box<Document>)

§

Emoji(Box<Emoji>)

§

EmojiReact(Box<EmojiReact>)

§

Event(Box<Event>)

§

FeatureAuthorization(Box<FeatureAuthorization>)

§

FeatureRequest(Box<FeatureRequest>)

§

FeaturedCollection(Box<FeaturedCollection>)

§

FeaturedItem(Box<FeaturedItem>)

§

Flag(Box<Flag>)

§

Follow(Box<Follow>)

§

Group(Box<Group>)

§

Hashtag(Box<Hashtag>)

§

Ignore(Box<Ignore>)

§

Image(Box<Image>)

§

IntransitiveActivity(Box<IntransitiveActivity>)

§

Invite(Box<Invite>)

§

Join(Box<Join>)

§

Leave(Box<Leave>)

§

Like(Box<Like>)

§

LikeAuthorization(Box<LikeAuthorization>)

§

LikeRequest(Box<LikeRequest>)

§

Listen(Box<Listen>)

§

Mention(Box<Mention>)

§

Move(Box<Move>)

§

Note(Box<Note>)

§

Object(Box<Object>)

§

Offer(Box<Offer>)

§

OrderedCollection(Box<OrderedCollection>)

§

OrderedCollectionPage(Box<OrderedCollectionPage>)

§

Organization(Box<Organization>)

§

Page(Box<Page>)

§

Person(Box<Person>)

§

Place(Box<Place>)

§

Profile(Box<Profile>)

§

PropertyValue(Box<PropertyValue>)

§

Proposal(Box<Proposal>)

§

Question(Box<Question>)

§

QuoteAuthorization(Box<QuoteAuthorization>)

§

QuoteRequest(Box<QuoteRequest>)

§

Read(Box<Read>)

§

Reject(Box<Reject>)

§

Relationship(Box<Relationship>)

§

Remove(Box<Remove>)

§

ReplyAuthorization(Box<ReplyAuthorization>)

§

ReplyRequest(Box<ReplyRequest>)

§

Service(Box<Service>)

§

TentativeAccept(Box<TentativeAccept>)

§

TentativeReject(Box<TentativeReject>)

§

Tombstone(Box<Tombstone>)

§

Travel(Box<Travel>)

§

Undo(Box<Undo>)

§

Update(Box<Update>)

§

Video(Box<Video>)

§

View(Box<View>)

§

Other(Value)

Anything no schema describes, as it was.

Implementations§

Source§

impl LinkOrObjectOrPropertyValue

Source

pub fn id(&self) -> Option<&Iri>

The IRI of the value: the reference itself, or the object’s id.

Trait Implementations§

Source§

impl Clone for LinkOrObjectOrPropertyValue

Source§

fn clone(&self) -> LinkOrObjectOrPropertyValue

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 LinkOrObjectOrPropertyValue

Source§

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

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

impl<'de> Deserialize<'de> for LinkOrObjectOrPropertyValue

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 LinkOrObjectOrPropertyValue

Source§

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

Read value. Read more
Source§

impl PartialEq for LinkOrObjectOrPropertyValue

Source§

fn eq(&self, other: &LinkOrObjectOrPropertyValue) -> 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 LinkOrObjectOrPropertyValue

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 LinkOrObjectOrPropertyValue

Source§

impl ToJson for LinkOrObjectOrPropertyValue

Source§

fn to_json(&self) -> Value

Write self.

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.