pub struct ExecutionApiState {Show 15 fields
pub compiled: Arc<CompiledGraph<MessagesState>>,
pub graph_bridge: Arc<dyn ExecutionGraphBridge>,
pub cancelled_threads: Arc<RwLock<HashSet<String>>>,
pub evolution_store: Arc<dyn EvolutionStore>,
pub evolution_node: Arc<EvolutionNetworkNode>,
pub auth: ExecutionApiAuthConfig,
pub mcp_bootstrap: McpBootstrapConfig,
pub mcp_capability_registry: Arc<Vec<McpCapabilityMapping>>,
pub idempotency_store: Option<SqliteIdempotencyStore>,
pub runtime_repo: Option<SqliteRuntimeRepository>,
pub pg_idempotency_store: Option<PostgresIdempotencyStore>,
pub runtime_metrics: RuntimeMetrics,
pub worker_poll_limit: usize,
pub max_active_leases_per_worker: usize,
pub max_active_leases_per_tenant: usize,
/* private fields */
}Available on crate feature
execution-server only.Fields§
§compiled: Arc<CompiledGraph<MessagesState>>§graph_bridge: Arc<dyn ExecutionGraphBridge>§cancelled_threads: Arc<RwLock<HashSet<String>>>§evolution_store: Arc<dyn EvolutionStore>Available on crate feature
§evolution-network-experimental only.evolution_node: Arc<EvolutionNetworkNode>Available on crate feature
§evolution-network-experimental only.auth: ExecutionApiAuthConfig§mcp_bootstrap: McpBootstrapConfigAvailable on crate feature
§mcp-experimental only.mcp_capability_registry: Arc<Vec<McpCapabilityMapping>>Available on crate feature
§mcp-experimental only.idempotency_store: Option<SqliteIdempotencyStore>Available on crate feature
§sqlite-persistence only.runtime_repo: Option<SqliteRuntimeRepository>Available on crate feature
§sqlite-persistence only.pg_idempotency_store: Option<PostgresIdempotencyStore>Available on crate feature
§kernel-postgres only.runtime_metrics: RuntimeMetrics§worker_poll_limit: usize§max_active_leases_per_worker: usize§max_active_leases_per_tenant: usizeImplementations§
Source§impl ExecutionApiState
impl ExecutionApiState
pub fn new(compiled: Arc<CompiledGraph<MessagesState>>) -> ExecutionApiState
pub fn with_sqlite_idempotency( compiled: Arc<CompiledGraph<MessagesState>>, db_path: &str, ) -> ExecutionApiState
Available on crate feature
sqlite-persistence only.pub fn with_graph_bridge( self, graph_bridge: Arc<dyn ExecutionGraphBridge>, ) -> ExecutionApiState
pub fn with_evolution_store( self, store: Arc<dyn EvolutionStore>, ) -> ExecutionApiState
Available on crate feature
evolution-network-experimental only.pub fn with_static_auth( self, bearer_token: Option<String>, api_key: Option<String>, ) -> ExecutionApiState
pub fn with_static_auth_roles( self, bearer_role: ApiRole, api_key_role: ApiRole, ) -> ExecutionApiState
pub fn with_static_bearer_token( self, token: impl Into<String>, ) -> ExecutionApiState
pub fn with_static_bearer_token_with_role( self, token: impl Into<String>, role: ApiRole, ) -> ExecutionApiState
pub fn with_compat_node_secret( self, secret: impl Into<String>, ) -> ExecutionApiState
pub fn with_compat_node_secret_with_role( self, secret: impl Into<String>, role: ApiRole, ) -> ExecutionApiState
pub fn with_static_api_key(self, key: impl Into<String>) -> ExecutionApiState
pub fn with_static_api_key_with_role( self, key: impl Into<String>, role: ApiRole, ) -> ExecutionApiState
pub fn with_static_api_key_record( self, key_id: impl Into<String>, secret: impl Into<String>, active: bool, ) -> ExecutionApiState
pub fn with_static_api_key_record_with_role( self, key_id: impl Into<String>, secret: impl Into<String>, active: bool, role: ApiRole, ) -> ExecutionApiState
pub fn with_persisted_api_key_record( self, key_id: impl Into<String>, secret: impl Into<String>, active: bool, ) -> ExecutionApiState
Available on crate feature
sqlite-persistence only.pub fn with_persisted_api_key_record_with_role( self, key_id: impl Into<String>, secret: impl Into<String>, active: bool, role: ApiRole, ) -> ExecutionApiState
Available on crate feature
sqlite-persistence only.pub fn with_mcp_bootstrap(self, config: McpBootstrapConfig) -> ExecutionApiState
Available on crate feature
mcp-experimental only.pub fn with_mcp_bootstrap_from_env(self) -> ExecutionApiState
Available on crate feature
mcp-experimental only.pub fn with_mcp_capability_registry( self, capability_registry: Vec<McpCapabilityMapping>, ) -> ExecutionApiState
Available on crate feature
mcp-experimental only.Trait Implementations§
Source§impl Clone for ExecutionApiState
impl Clone for ExecutionApiState
Source§fn clone(&self) -> ExecutionApiState
fn clone(&self) -> ExecutionApiState
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for ExecutionApiState
impl !RefUnwindSafe for ExecutionApiState
impl Send for ExecutionApiState
impl Sync for ExecutionApiState
impl Unpin for ExecutionApiState
impl UnsafeUnpin for ExecutionApiState
impl !UnwindSafe for ExecutionApiState
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