pub enum MediaResolution {
Low,
Medium,
High,
UltraHigh,
}Expand description
Video/image token-cost knob (spec §2) — serialized as the top-level
media_resolution request field. The gateway rewrites it into the
per-part detail field for Gemini models (Low cuts video token cost
~4x); non-Gemini models ignore it. No client-side model gating.
Variants§
Trait Implementations§
Source§impl Clone for MediaResolution
impl Clone for MediaResolution
Source§fn clone(&self) -> MediaResolution
fn clone(&self) -> MediaResolution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MediaResolution
Source§impl Debug for MediaResolution
impl Debug for MediaResolution
Source§impl<'de> Deserialize<'de> for MediaResolution
impl<'de> Deserialize<'de> for MediaResolution
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
impl Eq for MediaResolution
Source§impl PartialEq for MediaResolution
impl PartialEq for MediaResolution
Source§fn eq(&self, other: &MediaResolution) -> bool
fn eq(&self, other: &MediaResolution) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MediaResolution
impl Serialize for MediaResolution
impl StructuralPartialEq for MediaResolution
Auto Trait Implementations§
impl Freeze for MediaResolution
impl RefUnwindSafe for MediaResolution
impl Send for MediaResolution
impl Sync for MediaResolution
impl Unpin for MediaResolution
impl UnsafeUnpin for MediaResolution
impl UnwindSafe for MediaResolution
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