pub struct ImageInput {
pub source: ImageSource,
pub media_type: Option<String>,
pub filename: Option<String>,
}Expand description
One image input plus optional metadata.
Fields§
§source: ImageSourceSource from which bytes will be loaded.
media_type: Option<String>Optional expected media type.
filename: Option<String>Optional safe logical filename.
Trait Implementations§
Source§impl Clone for ImageInput
impl Clone for ImageInput
Source§fn clone(&self) -> ImageInput
fn clone(&self) -> ImageInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImageInput
impl Debug for ImageInput
Source§impl<'de> Deserialize<'de> for ImageInput
impl<'de> Deserialize<'de> for ImageInput
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
impl Eq for ImageInput
Source§impl JsonSchema for ImageInput
impl JsonSchema for ImageInput
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 moreSource§impl PartialEq for ImageInput
impl PartialEq for ImageInput
Source§impl Serialize for ImageInput
impl Serialize for ImageInput
impl StructuralPartialEq for ImageInput
Auto Trait Implementations§
impl Freeze for ImageInput
impl RefUnwindSafe for ImageInput
impl Send for ImageInput
impl Sync for ImageInput
impl Unpin for ImageInput
impl UnsafeUnpin for ImageInput
impl UnwindSafe for ImageInput
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