pub struct CropHintsParams {
pub aspect_ratios: Option<Vec<f32>>,
}Expand description
Parameters for crop hints annotation request.
This type is not used in any activity, and only used as part of another schema.
Fields§
§aspect_ratios: Option<Vec<f32>>Aspect ratios in floats, representing the ratio of the width to the height of the image. For example, if the desired aspect ratio is 4/3, the corresponding float value should be 1.33333. If not specified, the best possible crop is returned. The number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored.
Trait Implementations§
Source§impl Clone for CropHintsParams
impl Clone for CropHintsParams
Source§fn clone(&self) -> CropHintsParams
fn clone(&self) -> CropHintsParams
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 CropHintsParams
impl Debug for CropHintsParams
Source§impl Default for CropHintsParams
impl Default for CropHintsParams
Source§fn default() -> CropHintsParams
fn default() -> CropHintsParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CropHintsParams
impl<'de> Deserialize<'de> for CropHintsParams
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 Serialize for CropHintsParams
impl Serialize for CropHintsParams
impl Part for CropHintsParams
Auto Trait Implementations§
impl Freeze for CropHintsParams
impl RefUnwindSafe for CropHintsParams
impl Send for CropHintsParams
impl Sync for CropHintsParams
impl Unpin for CropHintsParams
impl UnwindSafe for CropHintsParams
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