1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/// Marks a type as an actor — the initiator of a use case.
/// Actors exist independently of any entity or action.
/// Marks a type as a domain entity — what a use case operates on.
/// A domain entity whose existence is tied to a specific actor.
/// Extends Entity and adds ownership semantics.
/// The central trait. A UseCase IS an action.
/// A: the actor that initiates it.
/// E: the entity it operates on.