Struct amazon_sp_aplus_content::models::image_offsets::ImageOffsets
source · [−]pub struct ImageOffsets {
pub x: Box<IntegerWithUnits>,
pub y: Box<IntegerWithUnits>,
}Expand description
ImageOffsets : The top left corner of the cropped image, specified in the original image’s coordinate space.
Fields
x: Box<IntegerWithUnits>y: Box<IntegerWithUnits>Implementations
sourceimpl ImageOffsets
impl ImageOffsets
sourcepub fn new(x: IntegerWithUnits, y: IntegerWithUnits) -> ImageOffsets
pub fn new(x: IntegerWithUnits, y: IntegerWithUnits) -> ImageOffsets
The top left corner of the cropped image, specified in the original image’s coordinate space.
Trait Implementations
sourceimpl Clone for ImageOffsets
impl Clone for ImageOffsets
sourcefn clone(&self) -> ImageOffsets
fn clone(&self) -> ImageOffsets
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 ImageOffsets
impl Debug for ImageOffsets
sourceimpl Default for ImageOffsets
impl Default for ImageOffsets
sourcefn default() -> ImageOffsets
fn default() -> ImageOffsets
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ImageOffsets
impl<'de> Deserialize<'de> for ImageOffsets
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<ImageOffsets> for ImageOffsets
impl PartialEq<ImageOffsets> for ImageOffsets
sourcefn eq(&self, other: &ImageOffsets) -> bool
fn eq(&self, other: &ImageOffsets) -> bool
sourceimpl Serialize for ImageOffsets
impl Serialize for ImageOffsets
impl StructuralPartialEq for ImageOffsets
Auto Trait Implementations
impl RefUnwindSafe for ImageOffsets
impl Send for ImageOffsets
impl Sync for ImageOffsets
impl Unpin for ImageOffsets
impl UnwindSafe for ImageOffsets
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