[][src]Struct lucid_kv_client::Builder

pub struct Builder<'a> { /* fields omitted */ }

A builder for adding custom options to the LucidClient

Implementations

impl<'a> Builder<'a>[src]

pub fn new<U: AsRef<str> + ?Sized>(base_url: &'a U) -> Self[src]

Create a new Client Builder with a base URL (e.g. http://localhost:7020)

pub fn add_jwt_key<T: AsRef<[u8]> + ?Sized>(self, key: &T) -> Self[src]

Add a JWT secret to authenticate against

pub fn add_root_certificate(self, cert: Certificate) -> Self[src]

Add a custom root certificate

pub fn build(self) -> Result<LucidClient, Error>[src]

Build the LucidClient itself

Trait Implementations

impl<'a> Debug for Builder<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Builder<'a>

impl<'a> Send for Builder<'a>

impl<'a> Sync for Builder<'a>

impl<'a> Unpin for Builder<'a>

impl<'a> !UnwindSafe for Builder<'a>

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, U> Into<U> for T where
    U: From<T>, 
[src]

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.