exomind_protos/
lib.rs

1// create a structure of modules so that generated files can reference exocore's generated code
2pub(crate) use exocore::protos as exocore_proto;
3pub(crate) mod generated {
4    pub(crate) use super::exocore_proto as exocore;
5    pub mod exomind {
6        pub mod v1 {
7            #[path = "../../exomind.base.v1.rs"]
8            pub mod base;
9        }
10    }
11}
12pub mod base {
13    pub use super::generated::exomind::v1::base::*;
14    use exocore::protos::message::NamedMessage;
15
16    impl NamedMessage for Collection {
17        fn full_name() -> &'static str {
18            "exomind.base.v1.Collection"
19        }
20    }
21
22    impl NamedMessage for CollectionChild {
23        fn full_name() -> &'static str {
24            "exomind.base.v1.CollectionChild"
25        }
26    }
27
28    impl NamedMessage for Snoozed {
29        fn full_name() -> &'static str {
30            "exomind.base.v1.Snoozed"
31        }
32    }
33
34    impl NamedMessage for Unread {
35        fn full_name() -> &'static str {
36            "exomind.base.v1.Unread"
37        }
38    }
39
40    impl NamedMessage for Account {
41        fn full_name() -> &'static str {
42            "exomind.base.v1.Account"
43        }
44    }
45
46    impl NamedMessage for EmailThread {
47        fn full_name() -> &'static str {
48            "exomind.base.v1.EmailThread"
49        }
50    }
51
52    impl NamedMessage for Email {
53        fn full_name() -> &'static str {
54            "exomind.base.v1.Email"
55        }
56    }
57
58    impl NamedMessage for DraftEmail {
59        fn full_name() -> &'static str {
60            "exomind.base.v1.DraftEmail"
61        }
62    }
63
64    impl NamedMessage for EmailPart {
65        fn full_name() -> &'static str {
66            "exomind.base.v1.EmailPart"
67        }
68    }
69
70    impl NamedMessage for EmailAttachment {
71        fn full_name() -> &'static str {
72            "exomind.base.v1.EmailAttachment"
73        }
74    }
75
76    impl NamedMessage for Note {
77        fn full_name() -> &'static str {
78            "exomind.base.v1.Note"
79        }
80    }
81
82    impl NamedMessage for Task {
83        fn full_name() -> &'static str {
84            "exomind.base.v1.Task"
85        }
86    }
87
88    impl NamedMessage for Link {
89        fn full_name() -> &'static str {
90            "exomind.base.v1.Link"
91        }
92    }
93
94    impl NamedMessage for Contact {
95        fn full_name() -> &'static str {
96            "exomind.base.v1.Contact"
97        }
98    }
99}