[−][src]Struct lucid_kv_client::Builder
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,