pub struct Domain {
pub id: Uuid,
pub name: String,
pub description: Option<String>,
pub systems: Vec<System>,
pub cads_nodes: Vec<CADSNode>,
pub odcs_nodes: Vec<ODCSNode>,
pub system_connections: Vec<SystemConnection>,
pub node_connections: Vec<NodeConnection>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
}Expand description
Domain - Top-level container for a business domain
Organizes systems, CADS nodes, and ODCS nodes within a business domain.
Fields§
§id: UuidUnique identifier
name: StringDomain name
description: Option<String>Domain description
systems: Vec<System>Systems in this domain
cads_nodes: Vec<CADSNode>CADS nodes in this domain
odcs_nodes: Vec<ODCSNode>ODCS nodes in this domain
system_connections: Vec<SystemConnection>System connections (ERD-style)
node_connections: Vec<NodeConnection>Node connections (Crowsfeet notation)
created_at: Option<DateTime<Utc>>Creation timestamp
updated_at: Option<DateTime<Utc>>Last update timestamp
Implementations§
Source§impl Domain
impl Domain
Sourcepub fn add_system(&mut self, system: System)
pub fn add_system(&mut self, system: System)
Add a system to the domain
Sourcepub fn add_cads_node(&mut self, node: CADSNode)
pub fn add_cads_node(&mut self, node: CADSNode)
Add a CADS node to the domain
Sourcepub fn add_odcs_node(&mut self, node: ODCSNode)
pub fn add_odcs_node(&mut self, node: ODCSNode)
Add an ODCS node to the domain
Sourcepub fn add_system_connection(&mut self, connection: SystemConnection)
pub fn add_system_connection(&mut self, connection: SystemConnection)
Add a system connection
Sourcepub fn add_node_connection(&mut self, connection: NodeConnection)
pub fn add_node_connection(&mut self, connection: NodeConnection)
Add a node connection
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Domain
impl<'de> Deserialize<'de> for Domain
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Domain
Auto Trait Implementations§
impl Freeze for Domain
impl RefUnwindSafe for Domain
impl Send for Domain
impl Sync for Domain
impl Unpin for Domain
impl UnwindSafe for Domain
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