pub struct DapsConfigBuilder<'a> { /* private fields */ }Expand description
Builder for DapsConfig.
Implementations§
source§impl<'a> DapsConfigBuilder<'a>
impl<'a> DapsConfigBuilder<'a>
sourcepub fn token_url<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn token_url<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The URL for the request of a DAPS token.
sourcepub fn certs_url<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn certs_url<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The URL for the request of the certificates for validation.
sourcepub fn private_key<VALUE: Into<Cow<'a, Path>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn private_key<VALUE: Into<Cow<'a, Path>>>( &mut self, value: VALUE, ) -> &mut Self
The local path to the private key file.
sourcepub fn private_key_password<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn private_key_password<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
The password for the private key file.
sourcepub fn scope<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn scope<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The scope for the DAPS token.
sourcepub fn certs_cache_ttl<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn certs_cache_ttl<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
The time-to-live for the certificates cache in seconds.
sourcepub fn build(&self) -> Result<DapsConfig<'a>, DapsConfigBuilderError>
pub fn build(&self) -> Result<DapsConfig<'a>, DapsConfigBuilderError>
Trait Implementations§
source§impl<'a> Clone for DapsConfigBuilder<'a>
impl<'a> Clone for DapsConfigBuilder<'a>
source§fn clone(&self) -> DapsConfigBuilder<'a>
fn clone(&self) -> DapsConfigBuilder<'a>
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for DapsConfigBuilder<'a>
impl<'a> RefUnwindSafe for DapsConfigBuilder<'a>
impl<'a> Send for DapsConfigBuilder<'a>
impl<'a> Sync for DapsConfigBuilder<'a>
impl<'a> Unpin for DapsConfigBuilder<'a>
impl<'a> UnwindSafe for DapsConfigBuilder<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)