pub struct ClientBuilder { /* private fields */ }
Expand description
A builder for configuring a Client.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub async fn from_environment(self) -> Result<Self, Error>
pub async fn from_environment(self) -> Result<Self, Error>
Infer the Authly client from the environment it runs in.
Sourcepub fn with_authly_local_ca_pem(self, ca: Vec<u8>) -> Result<Self, Error>
pub fn with_authly_local_ca_pem(self, ca: Vec<u8>) -> Result<Self, Error>
Use the given CA certificate to verify the Authly server
Sourcepub fn with_identity(self, identity: Identity) -> Self
pub fn with_identity(self, identity: Identity) -> Self
Use a pre-certified client identity
Sourcepub fn with_url(self, url: impl Into<String>) -> Self
pub fn with_url(self, url: impl Into<String>) -> Self
Override Authly URL (default is https://authly)
Sourcepub fn get_local_ca_pem(&self) -> Result<Cow<'_, [u8]>, Error>
pub fn get_local_ca_pem(&self) -> Result<Cow<'_, [u8]>, Error>
Get the current Authly local CA of the builder as a PEM-encoded byte buffer.
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnwindSafe for ClientBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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