pub struct EmbedSource {
pub source: String,
pub model: Option<String>,
}Expand description
The @embed binding for a vector property: its source text property and,
optionally, the embedding model recorded by @embed("source", model="…").
The model is what the query-time same-space check validates against.
Fields§
§source: String§model: Option<String>Trait Implementations§
Source§impl Clone for EmbedSource
impl Clone for EmbedSource
Source§fn clone(&self) -> EmbedSource
fn clone(&self) -> EmbedSource
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 EmbedSource
impl Debug for EmbedSource
impl Eq for EmbedSource
Source§impl PartialEq for EmbedSource
impl PartialEq for EmbedSource
Source§fn eq(&self, other: &EmbedSource) -> bool
fn eq(&self, other: &EmbedSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EmbedSource
Auto Trait Implementations§
impl Freeze for EmbedSource
impl RefUnwindSafe for EmbedSource
impl Send for EmbedSource
impl Sync for EmbedSource
impl Unpin for EmbedSource
impl UnsafeUnpin for EmbedSource
impl UnwindSafe for EmbedSource
Blanket Implementations§
impl<T> Allocation for T
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