Struct avassa_client::ClientBuilder [−][src]
pub struct ClientBuilder { /* fields omitted */ }Builder for an Avassa Client
Implementations
impl ClientBuilder[src]
impl ClientBuilder[src]pub fn new() -> Self[src]
Create a new builder instance
pub fn add_root_certificate(self, cert: &[u8]) -> Result<Self>[src]
Add a root certificate for API certificate verification
pub fn danger_accept_invalid_certs(self) -> Self[src]
Disable certificate verification
pub fn danger_accept_invalid_hostnames(self) -> Self[src]
Disable hostname verification
pub async fn application_login(
&self,
host: &str,
approle_id: Option<&str>
) -> Result<Client>[src]
&self,
host: &str,
approle_id: Option<&str>
) -> Result<Client>
Login the application from secret set in the environment
approle_id can optionally be provided
This assumes the environment variable APPROLE_SECRET_ID is set by the system.
pub async fn login(
&self,
host: &str,
username: &str,
password: &str
) -> Result<Client>[src]
&self,
host: &str,
username: &str,
password: &str
) -> Result<Client>
Login to an avassa Control Tower or Edge Enforcer instance. If possible, please use the application_login as no credentials needs to be distributed.
Trait Implementations
impl Clone for ClientBuilder[src]
impl Clone for ClientBuilder[src]fn clone(&self) -> ClientBuilder[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for ClientBuilder
impl RefUnwindSafe for ClientBuilderimpl Send for ClientBuilder
impl Send for ClientBuilderimpl Sync for ClientBuilder
impl Sync for ClientBuilderimpl Unpin for ClientBuilder
impl Unpin for ClientBuilderimpl UnwindSafe for ClientBuilder
impl UnwindSafe for ClientBuilderBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,