pub struct PreferencePrompt {
pub embedding: Vec<f32>,
pub context: Vec<String>,
}Expand description
Preference prompt
Fields§
§embedding: Vec<f32>Query embedding
context: Vec<String>Context IDs
Trait Implementations§
Source§impl Clone for PreferencePrompt
impl Clone for PreferencePrompt
Source§fn clone(&self) -> PreferencePrompt
fn clone(&self) -> PreferencePrompt
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 moreSource§impl Debug for PreferencePrompt
impl Debug for PreferencePrompt
Source§impl<'de> Deserialize<'de> for PreferencePrompt
impl<'de> Deserialize<'de> for PreferencePrompt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PreferencePrompt
impl RefUnwindSafe for PreferencePrompt
impl Send for PreferencePrompt
impl Sync for PreferencePrompt
impl Unpin for PreferencePrompt
impl UnwindSafe for PreferencePrompt
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