pub struct ChalkClientBuilder { /* private fields */ }Expand description
Builder for ChalkClient.
Implementations§
Source§impl ChalkClientBuilder
impl ChalkClientBuilder
Sourcepub fn client_secret(self, secret: impl Into<String>) -> Self
pub fn client_secret(self, secret: impl Into<String>) -> Self
Set the OAuth2 client secret.
Sourcepub fn api_server(self, url: impl Into<String>) -> Self
pub fn api_server(self, url: impl Into<String>) -> Self
Set the API server URL.
Sourcepub fn environment(self, env: impl Into<String>) -> Self
pub fn environment(self, env: impl Into<String>) -> Self
Set the target environment.
Sourcepub fn deployment_tag(self, tag: impl Into<String>) -> Self
pub fn deployment_tag(self, tag: impl Into<String>) -> Self
Set the deployment tag.
Sourcepub fn query_server(self, url: impl Into<String>) -> Self
pub fn query_server(self, url: impl Into<String>) -> Self
Set the query server URL directly.
Sourcepub async fn build(self) -> Result<ChalkClient>
pub async fn build(self) -> Result<ChalkClient>
Build the client.
This is async because it performs the initial token exchange to
discover the query engine URL and validate credentials.
Auto Trait Implementations§
impl Freeze for ChalkClientBuilder
impl RefUnwindSafe for ChalkClientBuilder
impl Send for ChalkClientBuilder
impl Sync for ChalkClientBuilder
impl Unpin for ChalkClientBuilder
impl UnsafeUnpin for ChalkClientBuilder
impl UnwindSafe for ChalkClientBuilder
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