pub enum MediaResolutionLevel {
MediaResolutionUnspecified,
MediaResolutionLow,
MediaResolutionMedium,
MediaResolutionHigh,
}Expand description
Media resolution level for images and PDFs
Controls the resolution used when processing inline images and PDF documents, which affects both quality and token consumption.
Variants§
MediaResolutionUnspecified
Unspecified resolution (uses model default)
MediaResolutionLow
Low resolution - uses fewer tokens, lower quality
MediaResolutionMedium
Medium resolution - balanced token usage and quality
MediaResolutionHigh
High resolution - uses more tokens, higher quality
Trait Implementations§
Source§impl Clone for MediaResolutionLevel
impl Clone for MediaResolutionLevel
Source§fn clone(&self) -> MediaResolutionLevel
fn clone(&self) -> MediaResolutionLevel
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 MediaResolutionLevel
impl Debug for MediaResolutionLevel
Source§impl<'de> Deserialize<'de> for MediaResolutionLevel
impl<'de> Deserialize<'de> for MediaResolutionLevel
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 MediaResolutionLevel
impl PartialEq for MediaResolutionLevel
Source§impl Serialize for MediaResolutionLevel
impl Serialize for MediaResolutionLevel
impl StructuralPartialEq for MediaResolutionLevel
Auto Trait Implementations§
impl Freeze for MediaResolutionLevel
impl RefUnwindSafe for MediaResolutionLevel
impl Send for MediaResolutionLevel
impl Sync for MediaResolutionLevel
impl Unpin for MediaResolutionLevel
impl UnwindSafe for MediaResolutionLevel
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