pub struct AuthConfigOverrides {
pub state_dir: Option<PathBuf>,
pub max_temporary_keys: Option<usize>,
pub max_temporary_key_ttl: Option<Duration>,
pub legacy_protocol: Option<LegacyProtocolPolicy>,
}Expand description
Values that take the place of the environment variables
AuthConfig::from_env_with reads: each Some replaces one, which is then
not read at all, and each None leaves it in charge.
Fields§
§state_dir: Option<PathBuf>Replaces PB_MAPPER_AUTH_STATE_DIR and the platform default behind it.
max_temporary_keys: Option<usize>Replaces PB_MAPPER_AUTH_MAX_TEMP_KEYS.
max_temporary_key_ttl: Option<Duration>Replaces PB_MAPPER_AUTH_MAX_TEMP_TTL_SECS.
legacy_protocol: Option<LegacyProtocolPolicy>Replaces PB_MAPPER_LEGACY_PROTOCOL.
Trait Implementations§
Source§impl Clone for AuthConfigOverrides
impl Clone for AuthConfigOverrides
Source§impl Debug for AuthConfigOverrides
impl Debug for AuthConfigOverrides
Auto Trait Implementations§
impl Forget for AuthConfigOverrides
impl Freeze for AuthConfigOverrides
impl Move for AuthConfigOverrides
impl RefUnwindSafe for AuthConfigOverrides
impl Send for AuthConfigOverrides
impl Sync for AuthConfigOverrides
impl Unpin for AuthConfigOverrides
impl UnsafeUnpin for AuthConfigOverrides
impl UnwindSafe for AuthConfigOverrides
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more