#[non_exhaustive]pub struct CropHintsAnnotation {
pub crop_hints: Vec<CropHint>,
/* private fields */
}Expand description
Set of crop hints that are used to generate new crops when serving images.
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.crop_hints: Vec<CropHint>Crop hint results.
Implementations§
Source§impl CropHintsAnnotation
impl CropHintsAnnotation
pub fn new() -> Self
Sourcepub fn set_crop_hints<T, V>(self, v: T) -> Self
pub fn set_crop_hints<T, V>(self, v: T) -> Self
Sets the value of crop_hints.
Trait Implementations§
Source§impl Clone for CropHintsAnnotation
impl Clone for CropHintsAnnotation
Source§fn clone(&self) -> CropHintsAnnotation
fn clone(&self) -> CropHintsAnnotation
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 CropHintsAnnotation
impl Debug for CropHintsAnnotation
Source§impl Default for CropHintsAnnotation
impl Default for CropHintsAnnotation
Source§fn default() -> CropHintsAnnotation
fn default() -> CropHintsAnnotation
Returns the “default value” for a type. Read more
Source§impl Message for CropHintsAnnotation
impl Message for CropHintsAnnotation
Source§impl PartialEq for CropHintsAnnotation
impl PartialEq for CropHintsAnnotation
impl StructuralPartialEq for CropHintsAnnotation
Auto Trait Implementations§
impl Freeze for CropHintsAnnotation
impl RefUnwindSafe for CropHintsAnnotation
impl Send for CropHintsAnnotation
impl Sync for CropHintsAnnotation
impl Unpin for CropHintsAnnotation
impl UnwindSafe for CropHintsAnnotation
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