pub struct FallbackIdentity<'a> {
pub name: &'a str,
pub dim: u32,
pub dtype: &'a str,
}Expand description
Config-supplied fallback identity, used ONLY when the active-model fetch is unavailable (offline behavior preservation). These values are no longer the authority for what the embedder computes.
Fields§
§name: &'a strConfig model name ([models].embedding or [models].code_embedding).
dim: u32Config dimension ([models].voyage_output_dimension).
dtype: &'a strConfig dtype ([models].voyage_output_dtype).
Trait Implementations§
Source§impl<'a> Clone for FallbackIdentity<'a>
impl<'a> Clone for FallbackIdentity<'a>
Source§fn clone(&self) -> FallbackIdentity<'a>
fn clone(&self) -> FallbackIdentity<'a>
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<'a> Debug for FallbackIdentity<'a>
impl<'a> Debug for FallbackIdentity<'a>
impl<'a> Eq for FallbackIdentity<'a>
Source§impl<'a> PartialEq for FallbackIdentity<'a>
impl<'a> PartialEq for FallbackIdentity<'a>
Source§fn eq(&self, other: &FallbackIdentity<'a>) -> bool
fn eq(&self, other: &FallbackIdentity<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for FallbackIdentity<'a>
Auto Trait Implementations§
impl<'a> Freeze for FallbackIdentity<'a>
impl<'a> RefUnwindSafe for FallbackIdentity<'a>
impl<'a> Send for FallbackIdentity<'a>
impl<'a> Sync for FallbackIdentity<'a>
impl<'a> Unpin for FallbackIdentity<'a>
impl<'a> UnsafeUnpin for FallbackIdentity<'a>
impl<'a> UnwindSafe for FallbackIdentity<'a>
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.