Skip to main content

ForgeBridge

Trait ForgeBridge 

Source
pub trait ForgeBridge: Send + Sync {
    // Provided methods
    fn forge_version(&self) -> &str { ... }
    fn generate_blueprint(&self, _intent: &str) -> Result<String, String> { ... }
    fn validate_blueprint(&self, _blueprint_json: &str) -> Result<bool, String> { ... }
    fn export_blueprint(
        &self,
        _blueprint_id: &str,
        _format: &str,
    ) -> Result<Vec<u8>, String> { ... }
}

Provided Methods§

Source

fn forge_version(&self) -> &str

Source

fn generate_blueprint(&self, _intent: &str) -> Result<String, String>

Source

fn validate_blueprint(&self, _blueprint_json: &str) -> Result<bool, String>

Source

fn export_blueprint( &self, _blueprint_id: &str, _format: &str, ) -> Result<Vec<u8>, String>

Implementors§