pub enum Relationship {
Implements,
Depends,
Transforms,
Aggregates,
Invokes,
Produces,
Consumes,
Validates,
Configures,
Unknown,
}Expand description
Enum representing relationship types between components.
Relationships define how components interact and depend on each other, enabling graph analysis and pattern detection.
§Example
use hexser::graph::Relationship;
let rel = Relationship::Implements;
assert!(matches!(rel, Relationship::Implements));Variants§
Implements
Adapter implements a port interface.
Depends
Component depends on another component.
Transforms
Mapper transforms data between representations.
Aggregates
Aggregate contains entities or value objects.
Invokes
Application invokes a use case.
Produces
Component produces domain events.
Consumes
Component consumes domain events.
Validates
Component validates another component.
Configures
Component provides configuration.
Unknown
Unknown or unclassified relationship.
Implementations§
Trait Implementations§
Source§impl Clone for Relationship
impl Clone for Relationship
Source§fn clone(&self) -> Relationship
fn clone(&self) -> Relationship
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Relationship
impl Debug for Relationship
Source§impl Display for Relationship
impl Display for Relationship
Source§impl Hash for Relationship
impl Hash for Relationship
Source§impl PartialEq for Relationship
impl PartialEq for Relationship
impl Copy for Relationship
impl Eq for Relationship
impl StructuralPartialEq for Relationship
Auto Trait Implementations§
impl Freeze for Relationship
impl RefUnwindSafe for Relationship
impl Send for Relationship
impl Sync for Relationship
impl Unpin for Relationship
impl UnwindSafe for Relationship
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