pub struct ClientBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ClientBuilder<S>
impl<S: State> ClientBuilder<S>
Sourcepub async fn build(self) -> Result<Client, ClientError>where
S: IsComplete,
pub async fn build(self) -> Result<Client, ClientError>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn database_url(
self,
value: impl Into<String>,
) -> ClientBuilder<SetDatabaseUrl<S>>where
S::DatabaseUrl: IsUnset,
pub fn database_url(
self,
value: impl Into<String>,
) -> ClientBuilder<SetDatabaseUrl<S>>where
S::DatabaseUrl: IsUnset,
Required.
Sourcepub fn qdrant(self, value: impl Into<String>) -> ClientBuilder<SetQdrant<S>>where
S::Qdrant: IsUnset,
pub fn qdrant(self, value: impl Into<String>) -> ClientBuilder<SetQdrant<S>>where
S::Qdrant: IsUnset,
Required.
Sourcepub fn schema(self, value: impl Into<String>) -> ClientBuilder<SetSchema<S>>where
S::Schema: IsUnset,
pub fn schema(self, value: impl Into<String>) -> ClientBuilder<SetSchema<S>>where
S::Schema: IsUnset,
Sourcepub fn maybe_schema(
self,
value: Option<impl Into<String>>,
) -> ClientBuilder<SetSchema<S>>where
S::Schema: IsUnset,
pub fn maybe_schema(
self,
value: Option<impl Into<String>>,
) -> ClientBuilder<SetSchema<S>>where
S::Schema: IsUnset,
Sourcepub fn system_prompt(
self,
value: impl Into<String>,
) -> ClientBuilder<SetSystemPrompt<S>>where
S::SystemPrompt: IsUnset,
pub fn system_prompt(
self,
value: impl Into<String>,
) -> ClientBuilder<SetSystemPrompt<S>>where
S::SystemPrompt: IsUnset,
Sourcepub fn maybe_system_prompt(
self,
value: Option<impl Into<String>>,
) -> ClientBuilder<SetSystemPrompt<S>>where
S::SystemPrompt: IsUnset,
pub fn maybe_system_prompt(
self,
value: Option<impl Into<String>>,
) -> ClientBuilder<SetSystemPrompt<S>>where
S::SystemPrompt: IsUnset,
Sourcepub fn collection(
self,
value: impl Into<String>,
) -> ClientBuilder<SetCollection<S>>where
S::Collection: IsUnset,
pub fn collection(
self,
value: impl Into<String>,
) -> ClientBuilder<SetCollection<S>>where
S::Collection: IsUnset,
Sourcepub fn maybe_collection(
self,
value: Option<impl Into<String>>,
) -> ClientBuilder<SetCollection<S>>where
S::Collection: IsUnset,
pub fn maybe_collection(
self,
value: Option<impl Into<String>>,
) -> ClientBuilder<SetCollection<S>>where
S::Collection: IsUnset,
Sourcepub fn extraction_llm(
self,
value: LlmConfig,
) -> ClientBuilder<SetExtractionLlm<S>>where
S::ExtractionLlm: IsUnset,
pub fn extraction_llm(
self,
value: LlmConfig,
) -> ClientBuilder<SetExtractionLlm<S>>where
S::ExtractionLlm: IsUnset,
Sourcepub fn maybe_extraction_llm(
self,
value: Option<LlmConfig>,
) -> ClientBuilder<SetExtractionLlm<S>>where
S::ExtractionLlm: IsUnset,
pub fn maybe_extraction_llm(
self,
value: Option<LlmConfig>,
) -> ClientBuilder<SetExtractionLlm<S>>where
S::ExtractionLlm: IsUnset,
Sourcepub fn contradiction_llm(
self,
value: LlmConfig,
) -> ClientBuilder<SetContradictionLlm<S>>where
S::ContradictionLlm: IsUnset,
pub fn contradiction_llm(
self,
value: LlmConfig,
) -> ClientBuilder<SetContradictionLlm<S>>where
S::ContradictionLlm: IsUnset,
Sourcepub fn maybe_contradiction_llm(
self,
value: Option<LlmConfig>,
) -> ClientBuilder<SetContradictionLlm<S>>where
S::ContradictionLlm: IsUnset,
pub fn maybe_contradiction_llm(
self,
value: Option<LlmConfig>,
) -> ClientBuilder<SetContradictionLlm<S>>where
S::ContradictionLlm: IsUnset,
Sourcepub fn categorize_model(
self,
value: NliConfig,
) -> ClientBuilder<SetCategorizeModel<S>>where
S::CategorizeModel: IsUnset,
pub fn categorize_model(
self,
value: NliConfig,
) -> ClientBuilder<SetCategorizeModel<S>>where
S::CategorizeModel: IsUnset,
Sourcepub fn maybe_categorize_model(
self,
value: Option<NliConfig>,
) -> ClientBuilder<SetCategorizeModel<S>>where
S::CategorizeModel: IsUnset,
pub fn maybe_categorize_model(
self,
value: Option<NliConfig>,
) -> ClientBuilder<SetCategorizeModel<S>>where
S::CategorizeModel: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for ClientBuilder<S>
impl<S> RefUnwindSafe for ClientBuilder<S>
impl<S> Send for ClientBuilder<S>
impl<S> Sync for ClientBuilder<S>
impl<S> Unpin for ClientBuilder<S>
impl<S> UnsafeUnpin for ClientBuilder<S>
impl<S> UnwindSafe for ClientBuilder<S>
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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