pub struct Image {
pub url: Url,
pub thumbnail: Option<Url>,
pub category: ImageCategory,
pub image_type: CiString<4>,
pub width: Option<u32>,
pub height: Option<u32>,
pub extensions: Extensions,
}Available on crate feature
v2_3_0 only.Expand description
An image related to an EVSE, in terms of a file name or URL.
Spec: 2.3.0 §mod_locations_image_class
Fields§
§url: UrlURL from where the image data can be fetched through a web browser.
thumbnail: Option<Url>URL from where a thumbnail of the image can be fetched.
category: ImageCategoryDescribes what the image is used for.
image_type: CiString<4>Image type, e.g. gif, jpeg, png, svg.
width: Option<u32>Width of the full scale image.
height: Option<u32>Height of the full scale image.
extensions: ExtensionsUndocumented JSON fields, preserved verbatim.
Implementations§
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
Source§impl JsonSchema for Image
impl JsonSchema for Image
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin 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