pub struct RerankerConfig {
pub provider: String,
pub model: Option<String>,
pub api_key: Option<String>,
pub base_url: Option<String>,
pub top_k_multiplier: usize,
}Fields§
§provider: String§model: Option<String>§api_key: Option<String>§base_url: Option<String>§top_k_multiplier: usizeTrait Implementations§
Source§impl Clone for RerankerConfig
impl Clone for RerankerConfig
Source§fn clone(&self) -> RerankerConfig
fn clone(&self) -> RerankerConfig
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 RerankerConfig
impl Debug for RerankerConfig
Source§impl Default for RerankerConfig
impl Default for RerankerConfig
Source§impl<'de> Deserialize<'de> for RerankerConfig
impl<'de> Deserialize<'de> for RerankerConfig
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 RerankerConfig
impl RefUnwindSafe for RerankerConfig
impl Send for RerankerConfig
impl Sync for RerankerConfig
impl Unpin for RerankerConfig
impl UnsafeUnpin for RerankerConfig
impl UnwindSafe for RerankerConfig
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