pub struct RequestChainRegistry { /* private fields */ }
Expand description
Main registry for managing request chains
Implementations§
Source§impl RequestChainRegistry
impl RequestChainRegistry
Sourcepub fn new(config: ChainConfig) -> Self
pub fn new(config: ChainConfig) -> Self
Create a new registry
Sourcepub async fn register_from_yaml(&self, yaml: &str) -> Result<String>
pub async fn register_from_yaml(&self, yaml: &str) -> Result<String>
Register a chain from YAML string
Sourcepub async fn register_from_json(&self, json: &str) -> Result<String>
pub async fn register_from_json(&self, json: &str) -> Result<String>
Register a chain from JSON string
Sourcepub async fn get_chain(&self, id: &str) -> Option<ChainDefinition>
pub async fn get_chain(&self, id: &str) -> Option<ChainDefinition>
Get a chain by ID
Sourcepub async fn list_chains(&self) -> Vec<String>
pub async fn list_chains(&self) -> Vec<String>
List all chains
Sourcepub async fn remove_chain(&self, id: &str) -> Result<()>
pub async fn remove_chain(&self, id: &str) -> Result<()>
Remove a chain
Sourcepub async fn validate_chain(&self, chain: &ChainDefinition) -> Result<()>
pub async fn validate_chain(&self, chain: &ChainDefinition) -> Result<()>
Validate chain dependencies and structure
Sourcepub fn store(&self) -> &ChainStore
pub fn store(&self) -> &ChainStore
Get the chain store (for internal use)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RequestChainRegistry
impl !RefUnwindSafe for RequestChainRegistry
impl Send for RequestChainRegistry
impl Sync for RequestChainRegistry
impl Unpin for RequestChainRegistry
impl UnwindSafe for RequestChainRegistry
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