Struct amazon_sp_aplus_content::models::image_crop_specification::ImageCropSpecification
source · [−]pub struct ImageCropSpecification {
pub size: Box<ImageDimensions>,
pub offset: Option<Box<ImageOffsets>>,
}Expand description
ImageCropSpecification : The instructions for optionally cropping an image. If no cropping is desired, set the dimensions to the original image size. If the image is cropped and no offset values are provided, then the coordinates of the top left corner of the cropped image, relative to the original image, are defaulted to (0,0).
Fields
size: Box<ImageDimensions>offset: Option<Box<ImageOffsets>>Implementations
sourceimpl ImageCropSpecification
impl ImageCropSpecification
sourcepub fn new(size: ImageDimensions) -> ImageCropSpecification
pub fn new(size: ImageDimensions) -> ImageCropSpecification
The instructions for optionally cropping an image. If no cropping is desired, set the dimensions to the original image size. If the image is cropped and no offset values are provided, then the coordinates of the top left corner of the cropped image, relative to the original image, are defaulted to (0,0).
Trait Implementations
sourceimpl Clone for ImageCropSpecification
impl Clone for ImageCropSpecification
sourcefn clone(&self) -> ImageCropSpecification
fn clone(&self) -> ImageCropSpecification
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ImageCropSpecification
impl Debug for ImageCropSpecification
sourceimpl Default for ImageCropSpecification
impl Default for ImageCropSpecification
sourcefn default() -> ImageCropSpecification
fn default() -> ImageCropSpecification
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ImageCropSpecification
impl<'de> Deserialize<'de> for ImageCropSpecification
sourcefn 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
sourceimpl PartialEq<ImageCropSpecification> for ImageCropSpecification
impl PartialEq<ImageCropSpecification> for ImageCropSpecification
sourcefn eq(&self, other: &ImageCropSpecification) -> bool
fn eq(&self, other: &ImageCropSpecification) -> bool
sourceimpl Serialize for ImageCropSpecification
impl Serialize for ImageCropSpecification
impl StructuralPartialEq for ImageCropSpecification
Auto Trait Implementations
impl RefUnwindSafe for ImageCropSpecification
impl Send for ImageCropSpecification
impl Sync for ImageCropSpecification
impl Unpin for ImageCropSpecification
impl UnwindSafe for ImageCropSpecification
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more