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.0.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