pub struct Image {
pub browser_link: String,
pub height: Option<f64>,
pub type_: Option<String>,
pub width: Option<f64>,
}
Expand description
Info about the image.
JSON schema
{
"description": "Info about the image.",
"type": "object",
"required": [
"browserLink"
],
"properties": {
"browserLink": {
"description": "Browser-friendly link to an image.",
"examples": [
"https://codahosted.io/docs/nUYhlXysYO/blobs/bl-lYkYKNzkuT/3f879b9ecfa27448"
],
"type": "string",
"format": "url"
},
"height": {
"description": "The height in pixels of the image.",
"examples": [
600
],
"type": "number"
},
"type": {
"description": "MIME type of the image.",
"type": "string"
},
"width": {
"description": "The width in pixels of the image.",
"examples": [
800
],
"type": "number"
}
},
"additionalProperties": false,
"x-schema-name": "Image"
}
Fields§
§browser_link: String
Browser-friendly link to an image.
height: Option<f64>
§type_: Option<String>
MIME type of the image.
width: Option<f64>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Image
impl<'de> Deserialize<'de> for Image
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 Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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