pub struct ContextPair {
pub positive: QueryInput,
pub negative: QueryInput,
}Expand description
One positive/negative example pair.
Fields§
§positive: QueryInputExample the results should be similar to.
negative: QueryInputExample the results should move away from.
Trait Implementations§
Source§impl Clone for ContextPair
impl Clone for ContextPair
Source§fn clone(&self) -> ContextPair
fn clone(&self) -> ContextPair
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 ContextPair
impl Debug for ContextPair
Source§impl PartialEq for ContextPair
impl PartialEq for ContextPair
impl StructuralPartialEq for ContextPair
Auto Trait Implementations§
impl Freeze for ContextPair
impl RefUnwindSafe for ContextPair
impl Send for ContextPair
impl Sync for ContextPair
impl Unpin for ContextPair
impl UnsafeUnpin for ContextPair
impl UnwindSafe for ContextPair
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