Skip to main content

WriteEngine

Struct WriteEngine 

Source
pub struct WriteEngine<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> WriteEngine<'a>

Source

pub fn new(engine: &'a mut ForgeEngine) -> Self

Source

pub fn rename_blueprint( &mut self, id: &BlueprintId, name: impl Into<String>, ) -> ForgeResult<()>

Source

pub fn set_description( &mut self, id: &BlueprintId, desc: impl Into<String>, ) -> ForgeResult<()>

Source

pub fn set_status( &mut self, id: &BlueprintId, status: BlueprintStatus, ) -> ForgeResult<()>

Source

pub fn set_version( &mut self, id: &BlueprintId, version: impl Into<String>, ) -> ForgeResult<()>

Source

pub fn set_metadata( &mut self, id: &BlueprintId, key: impl Into<String>, value: impl Into<String>, ) -> ForgeResult<()>

Source

pub fn delete_blueprint(&mut self, id: &BlueprintId) -> ForgeResult<Blueprint>

Source

pub fn add_entity( &mut self, bp_id: &BlueprintId, entity: Entity, ) -> ForgeResult<EntityId>

Source

pub fn add_entity_from_spec( &mut self, bp_id: &BlueprintId, spec: &EntitySpec, ) -> ForgeResult<EntityId>

Source

pub fn remove_entity( &mut self, bp_id: &BlueprintId, entity_id: &EntityId, ) -> ForgeResult<Entity>

Source

pub fn update_entity_name( &mut self, bp_id: &BlueprintId, entity_id: &EntityId, name: impl Into<String>, ) -> ForgeResult<()>

Source

pub fn add_field_to_entity( &mut self, bp_id: &BlueprintId, entity_id: &EntityId, field: EntityField, ) -> ForgeResult<()>

Source

pub fn remove_field_from_entity( &mut self, bp_id: &BlueprintId, entity_id: &EntityId, field_name: &str, ) -> ForgeResult<()>

Source

pub fn add_operation_to_entity( &mut self, bp_id: &BlueprintId, entity_id: &EntityId, op: EntityOperation, ) -> ForgeResult<OperationId>

Source

pub fn remove_operation_from_entity( &mut self, bp_id: &BlueprintId, entity_id: &EntityId, op_id: &OperationId, ) -> ForgeResult<()>

Source

pub fn add_relationship( &mut self, bp_id: &BlueprintId, entity_id: &EntityId, rel: Relationship, ) -> ForgeResult<()>

Source

pub fn add_validation_rule( &mut self, bp_id: &BlueprintId, entity_id: &EntityId, rule: ValidationRule, ) -> ForgeResult<()>

Source

pub fn add_file( &mut self, bp_id: &BlueprintId, file: FileBlueprint, ) -> ForgeResult<FileId>

Source

pub fn remove_file( &mut self, bp_id: &BlueprintId, file_id: &FileId, ) -> ForgeResult<FileBlueprint>

Source

pub fn update_file_imports( &mut self, bp_id: &BlueprintId, file_id: &FileId, imports: Vec<String>, ) -> ForgeResult<()>

Source

pub fn update_file_exports( &mut self, bp_id: &BlueprintId, file_id: &FileId, exports: Vec<String>, ) -> ForgeResult<()>

Source

pub fn add_dependency( &mut self, bp_id: &BlueprintId, dep: Dependency, ) -> ForgeResult<DependencyId>

Source

pub fn remove_dependency( &mut self, bp_id: &BlueprintId, dep_id: &DependencyId, ) -> ForgeResult<Dependency>

Source

pub fn update_dependency_version( &mut self, bp_id: &BlueprintId, dep_id: &DependencyId, version: impl Into<String>, ) -> ForgeResult<()>

Source

pub fn add_test_case( &mut self, bp_id: &BlueprintId, tc: TestCase, ) -> ForgeResult<TestCaseId>

Source

pub fn remove_test_case( &mut self, bp_id: &BlueprintId, tc_id: &TestCaseId, ) -> ForgeResult<TestCase>

Source

pub fn add_type_definition( &mut self, bp_id: &BlueprintId, td: TypeDefinition, ) -> ForgeResult<()>

Source

pub fn remove_type_definition( &mut self, bp_id: &BlueprintId, name: &str, ) -> ForgeResult<()>

Source

pub fn add_function_blueprint( &mut self, bp_id: &BlueprintId, fb: FunctionBlueprint, ) -> ForgeResult<()>

Source

pub fn add_layer( &mut self, bp_id: &BlueprintId, layer: ArchitectureLayer, ) -> ForgeResult<()>

Source

pub fn add_concern( &mut self, bp_id: &BlueprintId, concern: CrossCuttingConcern, ) -> ForgeResult<()>

Source

pub fn add_wiring( &mut self, bp_id: &BlueprintId, wiring: ComponentWiring, ) -> ForgeResult<()>

Source

pub fn add_data_flow( &mut self, bp_id: &BlueprintId, flow: DataFlow, ) -> ForgeResult<()>

Source

pub fn add_import_edge( &mut self, bp_id: &BlueprintId, edge: ImportEdge, ) -> ForgeResult<()>

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.