Struct ObjectProperties

Source
pub struct ObjectProperties {
Show 27 fields pub id: Option<Value>, pub attachment: Option<Value>, pub attributed_to: Option<Value>, pub audience: Option<Value>, pub content: Option<Value>, pub context: Option<Value>, pub name: Option<Value>, pub end_time: Option<Value>, pub generator: Option<Value>, pub icon: Option<Value>, pub image: Option<Value>, pub in_reply_to: Option<Value>, pub location: Option<Value>, pub preview: Option<Value>, pub published: Option<Value>, pub replies: Option<Value>, pub start_time: Option<Value>, pub summary: Option<Value>, pub tag: Option<Value>, pub updated: Option<Value>, pub url: Option<Value>, pub to: Option<Value>, pub bto: Option<Value>, pub cc: Option<Value>, pub bcc: Option<Value>, pub media_type: Option<Value>, pub duration: Option<Value>,
}
Expand description

Define all the properties of the Object base type as described by the Activity Streams vocabulary.

In addition to having a global identifier (expressed as an absolute IRI using the id property) and an “object type” (expressed using the type property), all instances of the Object type share a common set of properties normatively defined by the Activity Vocabulary.

This struct does not provide an optional type property, if you are implementing your own object type, you must supply your own type. This crate’s provided object types all supply their own type properties as Unit Structs with custom serde behaviour.

All properties are optional (including the id and type).

Fields§

§id: Option<Value>

Provides the globally unique identifier for an Object or Link.

The id property is expressed as an absolute IRI in the spec, but for now is represented as a string.

  • Range: anyUri
  • Functional: true
§attachment: Option<Value>

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.

  • Range: Object | Link
  • Functional: false
§attributed_to: Option<Value>

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.

  • Range: Object | Link
  • Functional: false
§audience: Option<Value>

Identifies one or more entities that represent the total population of entities for which the object can considered to be relevant.

  • Range: Object | Link
  • Functional: false
§content: Option<Value>

The 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.

The content MAY be expressed using multiple language-tagged values.

  • Range: xsd:string | rdf:langString
  • Functional: false
§context: Option<Value>

Identifies the context within which the object exists or an activity was performed.

The notion of “context” used is intentionally vague. The intended function is to serve as a means of grouping objects and activities that share a common originating context or purpose. An example could be all activities relating to a common project or event.

  • Range: Object | Link
  • Functional: false
§name: Option<Value>

A 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.

  • Range: xsd:string | rdf:langString
  • Functional: false
§end_time: Option<Value>

The date and time describing the actual or expected ending time of the object.

When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.

  • Range: xsd:dateTime
  • Functional: true
§generator: Option<Value>

Identifies the entity (e.g. an application) that generated the object.

  • Range: Object | Link
  • Functional: false
§icon: Option<Value>

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.

  • Range: Image | Link
  • Functional: false
§image: Option<Value>

Indicates an entity that describes an image for this object.

Unlike the icon property, there are no aspect ratio or display size limitations assumed.

  • Range: Image | Link
  • Functional: false
§in_reply_to: Option<Value>

Indicates one or more entities for which this object is considered a response.

  • Range: Object | Link
  • Functional: false
§location: Option<Value>

Indicates one or more physical or logical locations associated with the object.

  • Range: Object | Link
  • Functional: false
§preview: Option<Value>

Identifies an entity that provides a preview of this object.

  • Range: Object | Link
  • Functional: false
§published: Option<Value>

The date and time at which the object was published.

  • Range: xsd:dateTime
  • Functional: true
§replies: Option<Value>

Identifies a Collection containing objects considered to be responses to this object.

  • Range: Object | Link
  • Functional: false
§start_time: Option<Value>

The date and time describing the actual or expected starting time of the object.

When used with an Activity object, for instance, the start_time property specifies the moment the activity began or is scheduled to begin.

  • Range: Object | Link
  • Functional: true
§summary: Option<Value>

A natural language summarization of the object encoded as HTML.

Multiple language tagged summaries MAY be provided.

  • Range: xsd:string | rdf:langString
  • Functional: false
§tag: Option<Value>

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.

  • Range: Object | Link
  • Functional: false
§updated: Option<Value>

The date and time at which the object was updated,

  • Range: xsd:dateTime
  • Functional: true
§url: Option<Value>

Identifies one or more links to representations of the object.

  • Range: xsd:anyUri | Link
  • Functional: false
§to: Option<Value>

Identifies an entity considered to be part of the public primary audience of an Object.

  • Range: Object | Link
  • Functional: false
§bto: Option<Value>

Identifies an Object that is part of the private primary audience of this Object.

  • Range: Object | Link
  • Functional: false
§cc: Option<Value>

Identifies an Object that is part of the public secondary audience of this Object.

  • Range: Object | Link
  • Functional: false
§bcc: Option<Value>

Identifies one or more Objects that are part of the private secondary audience of this Object.

  • Range: Object | Link
  • Functional: false
§media_type: Option<Value>

When used on an 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.

  • Range: Mime Media Type
  • Functional: true
§duration: Option<Value>

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 [xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as “PT5S”).

  • Range: xsd:duration
  • Functional: true

Implementations§

Source§

impl ObjectProperties

Source

pub fn id_string(&self) -> Result<String>

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

Source

pub fn set_id_string(&mut self, item: String) -> Result<()>

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

Source

pub fn attachment_object<T: Object>(&self) -> Result<T>

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

Source

pub fn set_attachment_object<T: Object>(&mut self, item: T) -> Result<()>

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

Source

pub fn attachment_object_vec<T: Object>(&self) -> Result<Vec<T>>

Retrieve many values 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

Source

pub fn set_attachment_object_vec<T: Object>( &mut self, item: Vec<T>, ) -> Result<()>

Set many values 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 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 many values 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 many values 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

Source

pub fn attachment_string(&self) -> Result<String>

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

Source

pub fn set_attachment_string(&mut self, item: String) -> Result<()>

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

Source

pub fn attachment_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_attachment_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn attributed_to_object<T: Object>(&self) -> Result<T>

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

Source

pub fn set_attributed_to_object<T: Object>(&mut self, item: T) -> Result<()>

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

Source

pub fn attributed_to_object_vec<T: Object>(&self) -> Result<Vec<T>>

Retrieve many values 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

Source

pub fn set_attributed_to_object_vec<T: Object>( &mut self, item: Vec<T>, ) -> Result<()>

Set many values 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 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 many values 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 many values 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

Source

pub fn attributed_to_string(&self) -> Result<String>

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

Source

pub fn set_attributed_to_string(&mut self, item: String) -> Result<()>

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

Source

pub fn attributed_to_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_attributed_to_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn audience_object<T: Object>(&self) -> Result<T>

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

Source

pub fn set_audience_object<T: Object>(&mut self, item: T) -> Result<()>

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

Source

pub fn audience_object_vec<T: Object>(&self) -> Result<Vec<T>>

Retrieve many values 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

Source

pub fn set_audience_object_vec<T: Object>(&mut self, item: Vec<T>) -> Result<()>

Set many values 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 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 many values 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 many values 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

Source

pub fn audience_string(&self) -> Result<String>

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

Source

pub fn set_audience_string(&mut self, item: String) -> Result<()>

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

Source

pub fn audience_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_audience_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn content_string(&self) -> Result<String>

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

Source

pub fn set_content_string(&mut self, item: String) -> Result<()>

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

Source

pub fn content_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_content_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn context_object<T: Object>(&self) -> Result<T>

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

Source

pub fn set_context_object<T: Object>(&mut self, item: T) -> Result<()>

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

Source

pub fn context_object_vec<T: Object>(&self) -> Result<Vec<T>>

Retrieve many values 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

Source

pub fn set_context_object_vec<T: Object>(&mut self, item: Vec<T>) -> Result<()>

Set many values 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 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 many values 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 many values 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

Source

pub fn context_string(&self) -> Result<String>

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

Source

pub fn set_context_string(&mut self, item: String) -> Result<()>

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

Source

pub fn context_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_context_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn name_string(&self) -> Result<String>

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

Source

pub fn set_name_string(&mut self, item: String) -> Result<()>

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

Source

pub fn name_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_name_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn end_time_string(&self) -> Result<String>

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

Source

pub fn set_end_time_string(&mut self, item: String) -> Result<()>

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

Source

pub fn end_time_utctime(&self) -> Result<UtcTime>

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

Source

pub fn set_end_time_utctime(&mut self, item: UtcTime) -> Result<()>

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

Source

pub fn generator_object<T: Object>(&self) -> Result<T>

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

Source

pub fn set_generator_object<T: Object>(&mut self, item: T) -> Result<()>

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

Source

pub fn generator_object_vec<T: Object>(&self) -> Result<Vec<T>>

Retrieve many values 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

Source

pub fn set_generator_object_vec<T: Object>( &mut self, item: Vec<T>, ) -> Result<()>

Set many values 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 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 many values 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 many values 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

Source

pub fn generator_string(&self) -> Result<String>

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

Source

pub fn set_generator_string(&mut self, item: String) -> Result<()>

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

Source

pub fn generator_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_generator_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn icon_object<T: Object>(&self) -> Result<T>

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

Source

pub fn set_icon_object<T: Object>(&mut self, item: T) -> Result<()>

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

Source

pub fn icon_object_vec<T: Object>(&self) -> Result<Vec<T>>

Retrieve many values 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

Source

pub fn set_icon_object_vec<T: Object>(&mut self, item: Vec<T>) -> Result<()>

Set many values 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 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 many values 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 many values 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

Source

pub fn icon_image(&self) -> Result<Image>

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

Source

pub fn set_icon_image(&mut self, item: Image) -> Result<()>

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

Source

pub fn icon_image_vec(&self) -> Result<Vec<Image>>

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

Source

pub fn set_icon_image_vec(&mut self, item: Vec<Image>) -> Result<()>

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

Source

pub fn icon_string(&self) -> Result<String>

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

Source

pub fn set_icon_string(&mut self, item: String) -> Result<()>

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

Source

pub fn icon_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_icon_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn image_object<T: Object>(&self) -> Result<T>

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

Source

pub fn set_image_object<T: Object>(&mut self, item: T) -> Result<()>

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

Source

pub fn image_object_vec<T: Object>(&self) -> Result<Vec<T>>

Retrieve many values 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

Source

pub fn set_image_object_vec<T: Object>(&mut self, item: Vec<T>) -> Result<()>

Set many values 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 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 many values 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 many values 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

Source

pub fn image_image(&self) -> Result<Image>

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

Source

pub fn set_image_image(&mut self, item: Image) -> Result<()>

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

Source

pub fn image_image_vec(&self) -> Result<Vec<Image>>

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

Source

pub fn set_image_image_vec(&mut self, item: Vec<Image>) -> Result<()>

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

Source

pub fn image_string(&self) -> Result<String>

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

Source

pub fn set_image_string(&mut self, item: String) -> Result<()>

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

Source

pub fn image_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_image_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn in_reply_to_object<T: Object>(&self) -> Result<T>

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

Source

pub fn set_in_reply_to_object<T: Object>(&mut self, item: T) -> Result<()>

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

Source

pub fn in_reply_to_object_vec<T: Object>(&self) -> Result<Vec<T>>

Retrieve many values 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

Source

pub fn set_in_reply_to_object_vec<T: Object>( &mut self, item: Vec<T>, ) -> Result<()>

Set many values 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 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 many values 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 many values 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

Source

pub fn in_reply_to_string(&self) -> Result<String>

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

Source

pub fn set_in_reply_to_string(&mut self, item: String) -> Result<()>

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

Source

pub fn in_reply_to_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_in_reply_to_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn location_object<T: Object>(&self) -> Result<T>

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

Source

pub fn set_location_object<T: Object>(&mut self, item: T) -> Result<()>

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

Source

pub fn location_object_vec<T: Object>(&self) -> Result<Vec<T>>

Retrieve many values 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

Source

pub fn set_location_object_vec<T: Object>(&mut self, item: Vec<T>) -> Result<()>

Set many values 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 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 many values 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 many values 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

Source

pub fn location_string(&self) -> Result<String>

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

Source

pub fn set_location_string(&mut self, item: String) -> Result<()>

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

Source

pub fn location_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_location_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn preview_object<T: Object>(&self) -> Result<T>

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

Source

pub fn set_preview_object<T: Object>(&mut self, item: T) -> Result<()>

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

Source

pub fn preview_object_vec<T: Object>(&self) -> Result<Vec<T>>

Retrieve many values 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

Source

pub fn set_preview_object_vec<T: Object>(&mut self, item: Vec<T>) -> Result<()>

Set many values 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 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 many values 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 many values 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

Source

pub fn preview_string(&self) -> Result<String>

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

Source

pub fn set_preview_string(&mut self, item: String) -> Result<()>

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

Source

pub fn preview_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_preview_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn published_string(&self) -> Result<String>

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

Source

pub fn set_published_string(&mut self, item: String) -> Result<()>

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

Source

pub fn published_utctime(&self) -> Result<UtcTime>

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

Source

pub fn set_published_utctime(&mut self, item: UtcTime) -> Result<()>

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

Source

pub fn replies_collection<T: Collection>(&self) -> Result<T>

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

Source

pub fn set_replies_collection<T: Collection>(&mut self, item: T) -> Result<()>

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

Source

pub fn replies_string(&self) -> Result<String>

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

Source

pub fn set_replies_string(&mut self, item: String) -> Result<()>

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

Source

pub fn start_time_string(&self) -> Result<String>

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

Source

pub fn set_start_time_string(&mut self, item: String) -> Result<()>

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

Source

pub fn start_time_utctime(&self) -> Result<UtcTime>

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

Source

pub fn set_start_time_utctime(&mut self, item: UtcTime) -> Result<()>

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

Source

pub fn summary_string(&self) -> Result<String>

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

Source

pub fn set_summary_string(&mut self, item: String) -> Result<()>

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

Source

pub fn summary_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_summary_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn tag_object<T: Object>(&self) -> Result<T>

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

Source

pub fn set_tag_object<T: Object>(&mut self, item: T) -> Result<()>

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

Source

pub fn tag_object_vec<T: Object>(&self) -> Result<Vec<T>>

Retrieve many values 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

Source

pub fn set_tag_object_vec<T: Object>(&mut self, item: Vec<T>) -> Result<()>

Set many values 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 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 many values 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 many values 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

Source

pub fn tag_string(&self) -> Result<String>

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

Source

pub fn set_tag_string(&mut self, item: String) -> Result<()>

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

Source

pub fn tag_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_tag_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn updated_string(&self) -> Result<String>

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

Source

pub fn set_updated_string(&mut self, item: String) -> Result<()>

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

Source

pub fn updated_utctime(&self) -> Result<UtcTime>

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

Source

pub fn set_updated_utctime(&mut self, item: UtcTime) -> Result<()>

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

Source

pub fn url_string(&self) -> Result<String>

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

Source

pub fn set_url_string(&mut self, item: String) -> Result<()>

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

Source

pub fn url_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_url_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

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 many values 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 many values 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

Source

pub fn to_object<T: Object>(&self) -> Result<T>

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

Source

pub fn set_to_object<T: Object>(&mut self, item: T) -> Result<()>

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

Source

pub fn to_object_vec<T: Object>(&self) -> Result<Vec<T>>

Retrieve many values 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

Source

pub fn set_to_object_vec<T: Object>(&mut self, item: Vec<T>) -> Result<()>

Set many values 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 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 many values 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 many values 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

Source

pub fn to_string(&self) -> Result<String>

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

Source

pub fn set_to_string(&mut self, item: String) -> Result<()>

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

Source

pub fn to_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_to_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn bto_object<T: Object>(&self) -> Result<T>

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

Source

pub fn set_bto_object<T: Object>(&mut self, item: T) -> Result<()>

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

Source

pub fn bto_object_vec<T: Object>(&self) -> Result<Vec<T>>

Retrieve many values 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

Source

pub fn set_bto_object_vec<T: Object>(&mut self, item: Vec<T>) -> Result<()>

Set many values 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 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 many values 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 many values 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

Source

pub fn bto_string(&self) -> Result<String>

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

Source

pub fn set_bto_string(&mut self, item: String) -> Result<()>

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

Source

pub fn bto_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_bto_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn cc_object<T: Object>(&self) -> Result<T>

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

Source

pub fn set_cc_object<T: Object>(&mut self, item: T) -> Result<()>

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

Source

pub fn cc_object_vec<T: Object>(&self) -> Result<Vec<T>>

Retrieve many values 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

Source

pub fn set_cc_object_vec<T: Object>(&mut self, item: Vec<T>) -> Result<()>

Set many values 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 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 many values 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 many values 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

Source

pub fn cc_string(&self) -> Result<String>

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

Source

pub fn set_cc_string(&mut self, item: String) -> Result<()>

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

Source

pub fn cc_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_cc_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn bcc_object<T: Object>(&self) -> Result<T>

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

Source

pub fn set_bcc_object<T: Object>(&mut self, item: T) -> Result<()>

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

Source

pub fn bcc_object_vec<T: Object>(&self) -> Result<Vec<T>>

Retrieve many values 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

Source

pub fn set_bcc_object_vec<T: Object>(&mut self, item: Vec<T>) -> Result<()>

Set many values 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 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 many values 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 many values 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

Source

pub fn bcc_string(&self) -> Result<String>

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

Source

pub fn set_bcc_string(&mut self, item: String) -> Result<()>

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

Source

pub fn bcc_string_vec(&self) -> Result<Vec<String>>

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

Source

pub fn set_bcc_string_vec(&mut self, item: Vec<String>) -> Result<()>

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

Source

pub fn media_type_string(&self) -> Result<String>

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

Source

pub fn set_media_type_string(&mut self, item: String) -> Result<()>

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

Source

pub fn duration_string(&self) -> Result<String>

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

Source

pub fn set_duration_string(&mut self, item: String) -> Result<()>

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

Source§

impl ObjectProperties

Source

pub fn media_type(&self) -> Result<Mime>

Fetch a typed Mime struct from the media_type field.

Trait Implementations§

Source§

impl Clone for ObjectProperties

Source§

fn clone(&self) -> ObjectProperties

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ObjectProperties

Source§

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

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

impl Default for ObjectProperties

Source§

fn default() -> ObjectProperties

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

impl<'de> Deserialize<'de> for ObjectProperties

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

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

impl Serialize for ObjectProperties

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> 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> 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.
Source§

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