pub struct RemoteEmbeddingConfig {
pub provider: EmbeddingProviderKind,
pub base_url: String,
pub api_key: String,
pub batch_size: usize,
pub timeout: Duration,
pub max_concurrency: usize,
}Expand description
Runtime configuration for a remote embedding provider.
Fields§
§provider: EmbeddingProviderKind§base_url: String§api_key: String§batch_size: usize§timeout: Duration§max_concurrency: usizeImplementations§
Source§impl RemoteEmbeddingConfig
impl RemoteEmbeddingConfig
Sourcepub fn redacted_base_url(&self) -> String
pub fn redacted_base_url(&self) -> String
Returns a URL label that is safe to expose in diagnostics.
Trait Implementations§
Source§impl Clone for RemoteEmbeddingConfig
impl Clone for RemoteEmbeddingConfig
Source§fn clone(&self) -> RemoteEmbeddingConfig
fn clone(&self) -> RemoteEmbeddingConfig
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 moreSource§impl Debug for RemoteEmbeddingConfig
impl Debug for RemoteEmbeddingConfig
impl Eq for RemoteEmbeddingConfig
Source§impl PartialEq for RemoteEmbeddingConfig
impl PartialEq for RemoteEmbeddingConfig
impl StructuralPartialEq for RemoteEmbeddingConfig
Auto Trait Implementations§
impl Freeze for RemoteEmbeddingConfig
impl RefUnwindSafe for RemoteEmbeddingConfig
impl Send for RemoteEmbeddingConfig
impl Sync for RemoteEmbeddingConfig
impl Unpin for RemoteEmbeddingConfig
impl UnsafeUnpin for RemoteEmbeddingConfig
impl UnwindSafe for RemoteEmbeddingConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.