pub struct ContextExamplePairBuilder { /* private fields */ }
Expand description
Builder for ContextExamplePair
.
Implementations§
source§impl ContextExamplePairBuilder
impl ContextExamplePairBuilder
pub fn positive<VALUE: Into<VectorExample>>(self, value: VALUE) -> Self
pub fn negative<VALUE: Into<VectorExample>>(self, value: VALUE) -> Self
source§impl ContextExamplePairBuilder
impl ContextExamplePairBuilder
sourcepub fn build(self) -> ContextExamplePair
pub fn build(self) -> ContextExamplePair
Builds the desired type. Can often be omitted.
Trait Implementations§
source§impl Default for ContextExamplePairBuilder
impl Default for ContextExamplePairBuilder
source§impl From<ContextExamplePairBuilder> for ContextExamplePair
impl From<ContextExamplePairBuilder> for ContextExamplePair
source§fn from(value: ContextExamplePairBuilder) -> Self
fn from(value: ContextExamplePairBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContextExamplePairBuilder
impl RefUnwindSafe for ContextExamplePairBuilder
impl Send for ContextExamplePairBuilder
impl Sync for ContextExamplePairBuilder
impl Unpin for ContextExamplePairBuilder
impl UnwindSafe for ContextExamplePairBuilder
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request