pub struct ContextInputBuilder { /* private fields */ }
Expand description
Builder for ContextInput
.
Implementations§
source§impl ContextInputBuilder
impl ContextInputBuilder
sourcepub fn pairs<VALUE: Into<Vec<ContextInputPair>>>(self, value: VALUE) -> Self
pub fn pairs<VALUE: Into<Vec<ContextInputPair>>>(self, value: VALUE) -> Self
Search space will be constrained by these pairs of vectors
source§impl ContextInputBuilder
impl ContextInputBuilder
sourcepub fn build(self) -> ContextInput
pub fn build(self) -> ContextInput
Builds the desired type. Can often be omitted.
source§impl ContextInputBuilder
impl ContextInputBuilder
pub fn add_pair( self, positive: impl Into<VectorInput>, negative: impl Into<VectorInput>, ) -> Self
Trait Implementations§
source§impl Default for ContextInputBuilder
impl Default for ContextInputBuilder
source§impl From<ContextInputBuilder> for ContextInput
impl From<ContextInputBuilder> for ContextInput
source§fn from(value: ContextInputBuilder) -> Self
fn from(value: ContextInputBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContextInputBuilder
impl RefUnwindSafe for ContextInputBuilder
impl Send for ContextInputBuilder
impl Sync for ContextInputBuilder
impl Unpin for ContextInputBuilder
impl UnwindSafe for ContextInputBuilder
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