pub struct LockServiceConfig {
pub log_level: LogLevel,
pub config_uri: Url,
pub dynamic_config: bool,
pub ssa_jwt: Option<String>,
pub log_interval: Option<Duration>,
pub health_interval: Option<Duration>,
pub telemetry_interval: Option<Duration>,
pub listen_sse: bool,
pub accept_invalid_certs: bool,
}Expand description
Config for the lock logger that are set using the bootstrap configs.
Fields§
§log_level: LogLevelThe logging level
config_uri: UrlURI where Cedarling can get metadata about the lock server.
i.e. .well-known/lock-server-configuration
This is set using the CEDARLING_LOCK_SERVER_CONFIGURATION_URI bootstrap property.
dynamic_config: boolToggles whether Cedarling should listen for SSE config updates.
This is set using the CEDARLING_LOCK_DYNAMIC_CONFIGURATION bootstrap property.
ssa_jwt: Option<String>Software Statement Assertion Json Web Token that Cedarling will use for Dynamic Client Registration.
This is set using the CEDARLING_LOCK_SSA_JWT bootstrap property.
log_interval: Option<Duration>Intervals to send log messges to the lock server.
Set this to None to disable transmission.
This is set using the CEDARLING_LOCK_LOG_INTERVAL bootstrap property.
health_interval: Option<Duration>Intervals to send health messges to the lock server.
Set this to None to disable transmission.
This is set using the CEDARLING_LOCK_HEALTH_INTERVAL bootstrap property.
telemetry_interval: Option<Duration>Intervals to send telemetry messges to the lock server.
Set this to None to disable transmission.
This is set using the CEDARLING_LOCK_TELEMETRY_INTERVAL bootstrap property.
listen_sse: boolControls whether Cedarling should listen for updates from the Lock Server.
This is set using the CEDARLING_LOCK_LISTEN_SSE bootstrap property.
accept_invalid_certs: boolAllow interaction with a Lock server with invalid certificates. Used for testing.
Trait Implementations§
Source§impl Clone for LockServiceConfig
impl Clone for LockServiceConfig
Source§fn clone(&self) -> LockServiceConfig
fn clone(&self) -> LockServiceConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LockServiceConfig
impl Debug for LockServiceConfig
Source§impl PartialEq for LockServiceConfig
impl PartialEq for LockServiceConfig
impl StructuralPartialEq for LockServiceConfig
Source§impl TryFrom<&BootstrapConfigRaw> for LockServiceConfig
impl TryFrom<&BootstrapConfigRaw> for LockServiceConfig
Source§type Error = BootstrapConfigLoadingError
type Error = BootstrapConfigLoadingError
Auto Trait Implementations§
impl Freeze for LockServiceConfig
impl RefUnwindSafe for LockServiceConfig
impl Send for LockServiceConfig
impl Sync for LockServiceConfig
impl Unpin for LockServiceConfig
impl UnsafeUnpin for LockServiceConfig
impl UnwindSafe for LockServiceConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request