Struct spiceai::ClientBuilder
source · pub struct ClientBuilder { /* private fields */ }
Expand description
Builder for creating a SpiceClient
.
By default the SpiceClient
will use local spice runtime flight endpoint.
Follow spiceai quickstart to setup local spice runtime.
To use default Spice.ai Cloud endpoints, you can use the with_spiceai_cloud()
method.
Implementations§
source§impl SpiceClientBuilder
impl SpiceClientBuilder
pub fn new() -> Self
sourcepub fn api_key(self, api_key: &str) -> Self
pub fn api_key(self, api_key: &str) -> Self
Configures the SpiceClient
to use the given API key.
sourcepub fn firecache_url(self, firecache_url: &str) -> Self
pub fn firecache_url(self, firecache_url: &str) -> Self
Configures the SpiceClient
to use the given Spice Firecache endpoint.
sourcepub fn flight_url(self, flight_url: &str) -> Self
pub fn flight_url(self, flight_url: &str) -> Self
Configures the SpiceClient
to use the given Spice Flight endpoint.
sourcepub fn use_spiceai_cloud(self) -> Self
pub fn use_spiceai_cloud(self) -> Self
Configures the SpiceClient
to use default Spice.ai Cloud endpoints.
Equivalent to calling .firecache_url("https://firecache.spiceai.io")
and .flight_url("https://flight.spiceai.io")
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpiceClientBuilder
impl RefUnwindSafe for SpiceClientBuilder
impl Send for SpiceClientBuilder
impl Sync for SpiceClientBuilder
impl Unpin for SpiceClientBuilder
impl UnwindSafe for SpiceClientBuilder
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