pub struct ResourceObject {Show 13 fields
pub files: Option<ItemOrArray<ItemOrArray<File>>>,
pub caption: Option<ItemOrArray<String>>,
pub url: Option<ItemOrArray<String>>,
pub image: Option<ItemOrArray<String>>,
pub type_field: Option<StringOrArray>,
pub height: Option<ItemOrArray<NumberOrString>>,
pub width: Option<ItemOrArray<NumberOrString>>,
pub duration: Option<ItemOrArray<NumberOrString>>,
pub mimetype: Option<ItemOrArray<String>>,
pub size: Option<ItemOrArray<NumberOrString>>,
pub id: Option<ItemOrArray<String>>,
pub title: Option<ItemOrArray<String>>,
pub additional: Option<Value>,
}Expand description
Represents a single resource object within ItemResponse and ResourceResponse.
Fields§
§files: Option<ItemOrArray<ItemOrArray<File>>>Files associated with the resource.
caption: Option<ItemOrArray<String>>Caption for the resource.
url: Option<ItemOrArray<String>>URL to the file, if applicable.
image: Option<ItemOrArray<String>>image URL for the resource, if applicable.
type_field: Option<StringOrArray>Type of the resource.
height: Option<ItemOrArray<NumberOrString>>Height of the resource in pixels.
width: Option<ItemOrArray<NumberOrString>>Width of the resource in pixels.
duration: Option<ItemOrArray<NumberOrString>>Duration of the resource in seconds.
mimetype: Option<ItemOrArray<String>>MIME type of the resource.
size: Option<ItemOrArray<NumberOrString>>Size of the resource in bytes.
id: Option<ItemOrArray<String>>Identifier of the resource.
title: Option<ItemOrArray<String>>title of the resource.
additional: Option<Value>Trait Implementations§
Source§impl Clone for ResourceObject
impl Clone for ResourceObject
Source§fn clone(&self) -> ResourceObject
fn clone(&self) -> ResourceObject
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourceObject
impl Debug for ResourceObject
Source§impl Default for ResourceObject
impl Default for ResourceObject
Source§fn default() -> ResourceObject
fn default() -> ResourceObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceObject
impl<'de> Deserialize<'de> for ResourceObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ResourceObject
impl RefUnwindSafe for ResourceObject
impl Send for ResourceObject
impl Sync for ResourceObject
impl Unpin for ResourceObject
impl UnwindSafe for ResourceObject
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more