pub struct ClientConfig { /* private fields */ }Expand description
Resolved, immutable client configuration.
Implementations§
Source§impl ClientConfig
impl ClientConfig
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Starts a configuration with nothing set explicitly.
Sourcepub fn from_env() -> Result<Self>
pub fn from_env() -> Result<Self>
Resolves the configuration from HATCHET_CLIENT_* variables alone.
§Errors
The same as ClientBuilder::build_config, which this is the
no-explicit-settings case of.
Sourcepub fn server_url(&self) -> &str
pub fn server_url(&self) -> &str
The engine’s REST/UI base URL.
Sourcepub fn tls_strategy(&self) -> TlsStrategy
pub fn tls_strategy(&self) -> TlsStrategy
How the connection is secured.
Sourcepub fn tls_cert_file(&self) -> Option<&Path>
pub fn tls_cert_file(&self) -> Option<&Path>
Client certificate for mTLS.
Sourcepub fn tls_key_file(&self) -> Option<&Path>
pub fn tls_key_file(&self) -> Option<&Path>
Client key for mTLS.
Sourcepub fn tls_root_ca_file(&self) -> Option<&Path>
pub fn tls_root_ca_file(&self) -> Option<&Path>
Root CA to trust instead of the system roots.
Sourcepub fn tls_server_name(&self) -> &str
pub fn tls_server_name(&self) -> &str
The name the server certificate is verified against.
Sourcepub fn gzip(&self) -> bool
pub fn gzip(&self) -> bool
Whether requests are sent gzip-compressed. Responses are always accepted compressed, whatever this says.
Sourcepub fn apply_namespace(&self, name: &str) -> String
pub fn apply_namespace(&self, name: &str) -> String
Prefixes a workflow name, event key, or run name with the namespace, unless it already carries it. Never apply this to cron expressions.
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Auto Trait Implementations§
impl Forget for ClientConfig
impl Freeze for ClientConfig
impl Move for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request