#[non_exhaustive]pub struct ImageQuery {
pub image: Option<Image>,
/* private fields */
}Expand description
Specifies the image query input.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.image: Option<Image>Implementations§
Source§impl ImageQuery
impl ImageQuery
pub fn new() -> Self
Sourcepub fn set_image<T: Into<Option<Image>>>(self, v: T) -> Self
pub fn set_image<T: Into<Option<Image>>>(self, v: T) -> Self
Sets the value of image.
Note that all the setters affecting image are mutually
exclusive.
Sourcepub fn image_bytes(&self) -> Option<&String>
pub fn image_bytes(&self) -> Option<&String>
The value of image
if it holds a ImageBytes, None if the field is not set or
holds a different branch.
Sourcepub fn set_image_bytes<T: Into<String>>(self, v: T) -> Self
pub fn set_image_bytes<T: Into<String>>(self, v: T) -> Self
Sets the value of image
to hold a ImageBytes.
Note that all the setters affecting image are
mutually exclusive.
Trait Implementations§
Source§impl Clone for ImageQuery
impl Clone for ImageQuery
Source§fn clone(&self) -> ImageQuery
fn clone(&self) -> ImageQuery
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 ImageQuery
impl Debug for ImageQuery
Source§impl Default for ImageQuery
impl Default for ImageQuery
Source§fn default() -> ImageQuery
fn default() -> ImageQuery
Returns the “default value” for a type. Read more
Source§impl PartialEq for ImageQuery
impl PartialEq for ImageQuery
impl StructuralPartialEq for ImageQuery
Auto Trait Implementations§
impl Freeze for ImageQuery
impl RefUnwindSafe for ImageQuery
impl Send for ImageQuery
impl Sync for ImageQuery
impl Unpin for ImageQuery
impl UnwindSafe for ImageQuery
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