MCPcopy Create free account
hub / github.com/Migorithm/rustiful-backend / Message

Interface Message

library/src/domain/mod.rs:22–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22pub trait Message: Sync + Send + Any + Downcast {
23 fn externally_notifiable(&self) -> bool {
24 false
25 }
26 fn internally_notifiable(&self) -> bool {
27 false
28 }
29
30 fn metadata(&self) -> MessageMetadata;
31 fn outbox(&self) -> Outbox {
32 let metadata = self.metadata();
33 Outbox::new(metadata.aggregate_id, metadata.topic, self.state())
34 }
35 fn message_clone(&self) -> Box<dyn Message>;
36
37 fn state(&self) -> String;
38}
39impl_downcast!(Message);
40impl Debug for dyn Message {
41 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {

Callers 3

_commit_hookMethod · 0.80
_commit_hookMethod · 0.80
_commit_hookMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected