pub struct GeminiContextWindowCompressionConfig {
pub sliding_window: Option<GeminiSlidingWindow>,
pub trigger_tokens: Option<i64>,
}Fields§
§sliding_window: Option<GeminiSlidingWindow>§trigger_tokens: Option<i64>Trait Implementations§
Source§impl Clone for GeminiContextWindowCompressionConfig
impl Clone for GeminiContextWindowCompressionConfig
Source§fn clone(&self) -> GeminiContextWindowCompressionConfig
fn clone(&self) -> GeminiContextWindowCompressionConfig
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 Default for GeminiContextWindowCompressionConfig
impl Default for GeminiContextWindowCompressionConfig
Source§fn default() -> GeminiContextWindowCompressionConfig
fn default() -> GeminiContextWindowCompressionConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GeminiContextWindowCompressionConfig
impl<'de> Deserialize<'de> for GeminiContextWindowCompressionConfig
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 GeminiContextWindowCompressionConfig
impl PartialEq for GeminiContextWindowCompressionConfig
Source§fn eq(&self, other: &GeminiContextWindowCompressionConfig) -> bool
fn eq(&self, other: &GeminiContextWindowCompressionConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GeminiContextWindowCompressionConfig
Auto Trait Implementations§
impl Freeze for GeminiContextWindowCompressionConfig
impl RefUnwindSafe for GeminiContextWindowCompressionConfig
impl Send for GeminiContextWindowCompressionConfig
impl Sync for GeminiContextWindowCompressionConfig
impl Unpin for GeminiContextWindowCompressionConfig
impl UnsafeUnpin for GeminiContextWindowCompressionConfig
impl UnwindSafe for GeminiContextWindowCompressionConfig
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