Id return the Operation identifier Some care need to be taken to define a correct Id derivation and enough entropy in the data used to avoid collisions. Notably: - the Id of the first Operation will be used as the Id of the Entity. Collision need to be avoided across entities of the same type (exam
()
| 39 | // |
| 40 | // A common way to derive an Id will be to use the entity.DeriveId() function on the serialized operation data. |
| 41 | Id() entity.Id |
| 42 | // Type return the type of the operation |
| 43 | Type() OperationType |
| 44 | // Validate check if the Operation data is valid |
no outgoing calls