Struct avassa_client::ClientBuilder[][src]

pub struct ClientBuilder { /* fields omitted */ }

Builder for an Avassa Client

Implementations

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]

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]

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]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,