pub struct VoyageConfig {
pub api_key: String,
pub model: String,
pub base_url: String,
pub input_type: Option<String>,
}Fields§
§api_key: String§model: String§base_url: String§input_type: Option<String>Implementations§
Source§impl VoyageConfig
impl VoyageConfig
pub fn new(api_key: impl Into<String>, model: VoyageModel) -> Self
pub fn with_base_url(self, url: impl Into<String>) -> Self
pub fn with_input_type(self, t: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for VoyageConfig
impl Clone for VoyageConfig
Source§fn clone(&self) -> VoyageConfig
fn clone(&self) -> VoyageConfig
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 moreAuto Trait Implementations§
impl Freeze for VoyageConfig
impl RefUnwindSafe for VoyageConfig
impl Send for VoyageConfig
impl Sync for VoyageConfig
impl Unpin for VoyageConfig
impl UnsafeUnpin for VoyageConfig
impl UnwindSafe for VoyageConfig
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