pub struct WriteEngine<'a> { /* private fields */ }Implementations§
Source§impl<'a> WriteEngine<'a>
impl<'a> WriteEngine<'a>
pub fn new(engine: &'a mut ForgeEngine) -> Self
pub fn rename_blueprint( &mut self, id: &BlueprintId, name: impl Into<String>, ) -> ForgeResult<()>
pub fn set_description( &mut self, id: &BlueprintId, desc: impl Into<String>, ) -> ForgeResult<()>
pub fn set_status( &mut self, id: &BlueprintId, status: BlueprintStatus, ) -> ForgeResult<()>
pub fn set_version( &mut self, id: &BlueprintId, version: impl Into<String>, ) -> ForgeResult<()>
pub fn set_metadata( &mut self, id: &BlueprintId, key: impl Into<String>, value: impl Into<String>, ) -> ForgeResult<()>
pub fn delete_blueprint(&mut self, id: &BlueprintId) -> ForgeResult<Blueprint>
pub fn add_entity( &mut self, bp_id: &BlueprintId, entity: Entity, ) -> ForgeResult<EntityId>
pub fn add_entity_from_spec( &mut self, bp_id: &BlueprintId, spec: &EntitySpec, ) -> ForgeResult<EntityId>
pub fn remove_entity( &mut self, bp_id: &BlueprintId, entity_id: &EntityId, ) -> ForgeResult<Entity>
pub fn update_entity_name( &mut self, bp_id: &BlueprintId, entity_id: &EntityId, name: impl Into<String>, ) -> ForgeResult<()>
pub fn add_field_to_entity( &mut self, bp_id: &BlueprintId, entity_id: &EntityId, field: EntityField, ) -> ForgeResult<()>
pub fn remove_field_from_entity( &mut self, bp_id: &BlueprintId, entity_id: &EntityId, field_name: &str, ) -> ForgeResult<()>
pub fn add_operation_to_entity( &mut self, bp_id: &BlueprintId, entity_id: &EntityId, op: EntityOperation, ) -> ForgeResult<OperationId>
pub fn remove_operation_from_entity( &mut self, bp_id: &BlueprintId, entity_id: &EntityId, op_id: &OperationId, ) -> ForgeResult<()>
pub fn add_relationship( &mut self, bp_id: &BlueprintId, entity_id: &EntityId, rel: Relationship, ) -> ForgeResult<()>
pub fn add_validation_rule( &mut self, bp_id: &BlueprintId, entity_id: &EntityId, rule: ValidationRule, ) -> ForgeResult<()>
pub fn add_file( &mut self, bp_id: &BlueprintId, file: FileBlueprint, ) -> ForgeResult<FileId>
pub fn remove_file( &mut self, bp_id: &BlueprintId, file_id: &FileId, ) -> ForgeResult<FileBlueprint>
pub fn update_file_imports( &mut self, bp_id: &BlueprintId, file_id: &FileId, imports: Vec<String>, ) -> ForgeResult<()>
pub fn update_file_exports( &mut self, bp_id: &BlueprintId, file_id: &FileId, exports: Vec<String>, ) -> ForgeResult<()>
pub fn add_dependency( &mut self, bp_id: &BlueprintId, dep: Dependency, ) -> ForgeResult<DependencyId>
pub fn remove_dependency( &mut self, bp_id: &BlueprintId, dep_id: &DependencyId, ) -> ForgeResult<Dependency>
pub fn update_dependency_version( &mut self, bp_id: &BlueprintId, dep_id: &DependencyId, version: impl Into<String>, ) -> ForgeResult<()>
pub fn add_test_case( &mut self, bp_id: &BlueprintId, tc: TestCase, ) -> ForgeResult<TestCaseId>
pub fn remove_test_case( &mut self, bp_id: &BlueprintId, tc_id: &TestCaseId, ) -> ForgeResult<TestCase>
pub fn add_type_definition( &mut self, bp_id: &BlueprintId, td: TypeDefinition, ) -> ForgeResult<()>
pub fn remove_type_definition( &mut self, bp_id: &BlueprintId, name: &str, ) -> ForgeResult<()>
pub fn add_function_blueprint( &mut self, bp_id: &BlueprintId, fb: FunctionBlueprint, ) -> ForgeResult<()>
pub fn add_layer( &mut self, bp_id: &BlueprintId, layer: ArchitectureLayer, ) -> ForgeResult<()>
pub fn add_concern( &mut self, bp_id: &BlueprintId, concern: CrossCuttingConcern, ) -> ForgeResult<()>
pub fn add_wiring( &mut self, bp_id: &BlueprintId, wiring: ComponentWiring, ) -> ForgeResult<()>
pub fn add_data_flow( &mut self, bp_id: &BlueprintId, flow: DataFlow, ) -> ForgeResult<()>
pub fn add_import_edge( &mut self, bp_id: &BlueprintId, edge: ImportEdge, ) -> ForgeResult<()>
pub fn set_generation_order( &mut self, bp_id: &BlueprintId, order: Vec<String>, ) -> ForgeResult<()>
Auto Trait Implementations§
impl<'a> Freeze for WriteEngine<'a>
impl<'a> RefUnwindSafe for WriteEngine<'a>
impl<'a> Send for WriteEngine<'a>
impl<'a> Sync for WriteEngine<'a>
impl<'a> Unpin for WriteEngine<'a>
impl<'a> UnsafeUnpin for WriteEngine<'a>
impl<'a> !UnwindSafe for WriteEngine<'a>
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