pub struct PackImageFile {
pub alt_text: Option<String>,
pub asset_id: String,
pub filename: String,
pub image_url: String,
pub mime_type: Option<String>,
}
Expand description
A Pack image file.
JSON schema
{
"description": "A Pack image file.",
"type": "object",
"required": [
"assetId",
"filename",
"imageUrl"
],
"properties": {
"altText": {
"description": "The alt text for the image.",
"type": "string"
},
"assetId": {
"description": "The asset id of the Pack's image.",
"type": "string"
},
"filename": {
"description": "The name of the image file.",
"type": "string"
},
"imageUrl": {
"description": "The URL to the image file.",
"type": "string",
"format": "url"
},
"mimeType": {
"description": "The media type of the image.",
"examples": [
"image/jpeg"
],
"type": "string"
}
},
"additionalProperties": false,
"x-schema-name": "PackImageFile"
}
Fields§
§alt_text: Option<String>
The alt text for the image.
asset_id: String
The asset id of the Pack’s image.
filename: String
The name of the image file.
image_url: String
The URL to the image file.
mime_type: Option<String>
The media type of the image.
Trait Implementations§
Source§impl Clone for PackImageFile
impl Clone for PackImageFile
Source§fn clone(&self) -> PackImageFile
fn clone(&self) -> PackImageFile
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 PackImageFile
impl Debug for PackImageFile
Source§impl<'de> Deserialize<'de> for PackImageFile
impl<'de> Deserialize<'de> for PackImageFile
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
Source§impl From<&PackImageFile> for PackImageFile
impl From<&PackImageFile> for PackImageFile
Source§fn from(value: &PackImageFile) -> Self
fn from(value: &PackImageFile) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackImageFile
impl RefUnwindSafe for PackImageFile
impl Send for PackImageFile
impl Sync for PackImageFile
impl Unpin for PackImageFile
impl UnwindSafe for PackImageFile
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