pub struct HostConfig {Show 18 fields
pub tenant: String,
pub bindings_path: PathBuf,
pub flow_type_bindings: HashMap<String, FlowBinding>,
pub rate_limits: RateLimits,
pub retry: FlowRetryConfig,
pub http_enabled: bool,
pub secrets_policy: SecretsPolicy,
pub state_store_policy: StateStorePolicy,
pub webhook_policy: WebhookPolicy,
pub timers: Vec<TimerBinding>,
pub oauth: Option<OAuthConfig>,
pub mocks: Option<MocksConfig>,
pub pack_bindings: Vec<PackBinding>,
pub env_passthrough: Vec<String>,
pub trace: TraceConfig,
pub validation: ValidationConfig,
pub operator_policy: OperatorPolicy,
pub fast2flow: Fast2FlowRoutingConfig,
}Fields§
§tenant: String§bindings_path: PathBuf§flow_type_bindings: HashMap<String, FlowBinding>§rate_limits: RateLimits§retry: FlowRetryConfig§http_enabled: bool§secrets_policy: SecretsPolicy§state_store_policy: StateStorePolicy§webhook_policy: WebhookPolicy§timers: Vec<TimerBinding>§oauth: Option<OAuthConfig>§mocks: Option<MocksConfig>§pack_bindings: Vec<PackBinding>§env_passthrough: Vec<String>§trace: TraceConfig§validation: ValidationConfig§operator_policy: OperatorPolicy§fast2flow: Fast2FlowRoutingConfigImplementations§
Source§impl HostConfig
impl HostConfig
pub fn load_from_path(path: impl AsRef<Path>) -> Result<HostConfig, Error>
pub fn from_gtbind(bindings: TenantBindings) -> HostConfig
pub fn messaging_binding(&self) -> Option<&FlowBinding>
pub fn retry_config(&self) -> FlowRetryConfig
pub fn oauth_broker_config(&self) -> Option<OAuthBrokerConfig>
Sourcepub fn tenant_ctx(&self) -> TenantCtx
pub fn tenant_ctx(&self) -> TenantCtx
Derive a tenant context for the current configuration. This is used when evaluating scoped requirements (e.g. secrets).
Trait Implementations§
Source§impl Clone for HostConfig
impl Clone for HostConfig
Source§fn clone(&self) -> HostConfig
fn clone(&self) -> HostConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for HostConfig
impl !UnwindSafe for HostConfig
impl Freeze for HostConfig
impl Send for HostConfig
impl Sync for HostConfig
impl Unpin for HostConfig
impl UnsafeUnpin for HostConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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 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>
Wrap the input message
T in a tonic::Request