pub struct EmbedderIdentity {
pub name: String,
pub dim: u32,
pub dtype: String,
}Expand description
The three values an embedder constructor needs:
VoyageEmbedder::new(api_key, name, dim, dtype) /
ContextualizedVoyageEmbedder::new(api_key, name, dim, dtype).
The API key is intentionally NOT here — a key is auth, not model identity,
and is resolved independently (resolve_voyage_api_key).
Fields§
§name: StringBare model name (e.g. voyage-context-3), NOT the name@revision wire id.
dim: u32Matryoshka output dimension sent as output_dimension.
dtype: StringOutput dtype sent as output_dtype (e.g. "float").
Trait Implementations§
Source§impl Clone for EmbedderIdentity
impl Clone for EmbedderIdentity
Source§fn clone(&self) -> EmbedderIdentity
fn clone(&self) -> EmbedderIdentity
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 EmbedderIdentity
impl Debug for EmbedderIdentity
impl Eq for EmbedderIdentity
Source§impl PartialEq for EmbedderIdentity
impl PartialEq for EmbedderIdentity
Source§fn eq(&self, other: &EmbedderIdentity) -> bool
fn eq(&self, other: &EmbedderIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EmbedderIdentity
Auto Trait Implementations§
impl Freeze for EmbedderIdentity
impl RefUnwindSafe for EmbedderIdentity
impl Send for EmbedderIdentity
impl Sync for EmbedderIdentity
impl Unpin for EmbedderIdentity
impl UnsafeUnpin for EmbedderIdentity
impl UnwindSafe for EmbedderIdentity
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
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.