Struct flipt::ConfigBuilder
source · pub struct ConfigBuilder<T>where
T: AuthenticationStrategy,{ /* private fields */ }Implementations§
source§impl<T: AuthenticationStrategy> ConfigBuilder<T>
impl<T: AuthenticationStrategy> ConfigBuilder<T>
pub fn with_endpoint(self, endpoint: Url) -> Self
pub fn with_auth_strategy(self, auth_strategy: T) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
pub fn build(self) -> Config<T>
Trait Implementations§
source§impl<T> Clone for ConfigBuilder<T>where
T: AuthenticationStrategy + Clone,
impl<T> Clone for ConfigBuilder<T>where
T: AuthenticationStrategy + Clone,
source§fn clone(&self) -> ConfigBuilder<T>
fn clone(&self) -> ConfigBuilder<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T> Debug for ConfigBuilder<T>where
T: AuthenticationStrategy + Debug,
impl<T> Debug for ConfigBuilder<T>where
T: AuthenticationStrategy + Debug,
source§impl<T: AuthenticationStrategy> Default for ConfigBuilder<T>
impl<T: AuthenticationStrategy> Default for ConfigBuilder<T>
Auto Trait Implementations§
impl<T> Freeze for ConfigBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConfigBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for ConfigBuilder<T>where
T: Send,
impl<T> Sync for ConfigBuilder<T>where
T: Sync,
impl<T> Unpin for ConfigBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for ConfigBuilder<T>where
T: UnwindSafe,
Blanket Implementations§
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