pub struct ImageCropSpecification {
pub size: Box<ImageDimensions>,
pub offset: Option<Box<ImageOffsets>>,
}Expand description
ImageCropSpecification : The instructions for optionally cropping an image. If you don’t want to crop the image, set the dimensions to the original image size. If the image is cropped and you don’t include offset values, the coordinates of the top left corner of the cropped image are set to (0,0) by default.
Fields§
§size: Box<ImageDimensions>§offset: Option<Box<ImageOffsets>>Implementations§
Source§impl ImageCropSpecification
impl ImageCropSpecification
Sourcepub fn new(size: ImageDimensions) -> ImageCropSpecification
pub fn new(size: ImageDimensions) -> ImageCropSpecification
The instructions for optionally cropping an image. If you don’t want to crop the image, set the dimensions to the original image size. If the image is cropped and you don’t include offset values, the coordinates of the top left corner of the cropped image are set to (0,0) by default.
Trait Implementations§
Source§impl Clone for ImageCropSpecification
impl Clone for ImageCropSpecification
Source§fn clone(&self) -> ImageCropSpecification
fn clone(&self) -> ImageCropSpecification
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 ImageCropSpecification
impl Debug for ImageCropSpecification
Source§impl Default for ImageCropSpecification
impl Default for ImageCropSpecification
Source§fn default() -> ImageCropSpecification
fn default() -> ImageCropSpecification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageCropSpecification
impl<'de> Deserialize<'de> for ImageCropSpecification
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 PartialEq for ImageCropSpecification
impl PartialEq for ImageCropSpecification
Source§impl Serialize for ImageCropSpecification
impl Serialize for ImageCropSpecification
impl StructuralPartialEq for ImageCropSpecification
Auto Trait Implementations§
impl Freeze for ImageCropSpecification
impl RefUnwindSafe for ImageCropSpecification
impl Send for ImageCropSpecification
impl Sync for ImageCropSpecification
impl Unpin for ImageCropSpecification
impl UnsafeUnpin for ImageCropSpecification
impl UnwindSafe for ImageCropSpecification
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