pub struct ModelConstraints {
pub max_images: usize,
pub max_image_dim: u32,
pub max_image_size_bytes: usize,
pub max_image_megapixels: Option<f64>,
pub supported_formats: Vec<String>,
}Expand description
Constraints for a specific model or provider default.
Fields§
§max_images: usize§max_image_dim: u32§max_image_size_bytes: usize§max_image_megapixels: Option<f64>§supported_formats: Vec<String>Trait Implementations§
Source§impl Clone for ModelConstraints
impl Clone for ModelConstraints
Source§fn clone(&self) -> ModelConstraints
fn clone(&self) -> ModelConstraints
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 ModelConstraints
impl Debug for ModelConstraints
Source§impl<'de> Deserialize<'de> for ModelConstraints
impl<'de> Deserialize<'de> for ModelConstraints
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
Auto Trait Implementations§
impl Freeze for ModelConstraints
impl RefUnwindSafe for ModelConstraints
impl Send for ModelConstraints
impl Sync for ModelConstraints
impl Unpin for ModelConstraints
impl UnsafeUnpin for ModelConstraints
impl UnwindSafe for ModelConstraints
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