pub struct LockServiceConfig {Show 13 fields
pub log_level: LogLevel,
pub config_uri: Url,
pub dynamic_config: bool,
pub ssa_jwt: Option<String>,
pub access_token_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,
pub transport: LockTransport,
pub log_channel_capacity: usize,
pub log_max_retries: u32,
}Expand description
Lock service config
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
dynamic_config: boolToggles whether Cedarling should listen for SSE config updates.
ssa_jwt: Option<String>Software Statement Assertion Json Web Token that Cedarling will use for Dynamic Client Registration.
access_token_jwt: Option<String>Pre-issued access token for Lock Server authentication.
When set, Cedarling skips the SSA → DCR → access_token flow and uses this
token directly. If both ssa_jwt and access_token_jwt are present,
access_token_jwt takes precedence.
Not available on WASM targets.
log_interval: Option<Duration>Intervals to send log messages to the lock server.
Set this to None to disable transmission.
health_interval: Option<Duration>Intervals to send health messages to the lock server.
Set this to None to disable transmission.
telemetry_interval: Option<Duration>Intervals to send telemetry messages to the lock server.
Set this to None to disable transmission.
listen_sse: boolControls whether Cedarling should listen for updates from the Lock Server.
accept_invalid_certs: boolAllow interaction with a Lock server with invalid certificates. Used for testing.
transport: LockTransportTransport protocol to use for Lock Server communication
log_channel_capacity: usizeChannel capacity for buffering log entries before they are sent to the lock server.
log_max_retries: u32Maximum number of retry attempts for sending logs to the lock server.
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 Default for LockServiceConfig
impl Default for LockServiceConfig
Source§impl From<LockServiceConfigRaw> for LockServiceConfig
impl From<LockServiceConfigRaw> for LockServiceConfig
Source§fn from(raw: LockServiceConfigRaw) -> Self
fn from(raw: LockServiceConfigRaw) -> Self
Source§impl PartialEq for LockServiceConfig
impl PartialEq for LockServiceConfig
Source§fn eq(&self, other: &LockServiceConfig) -> bool
fn eq(&self, other: &LockServiceConfig) -> bool
self and other values to be equal, and is used by ==.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