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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// create a structure of modules so that generated files can reference exocore's generated code
pub(crate) use exocore::protos as exocore_proto;
pub(crate) mod generated {
    pub(crate) use super::exocore_proto as exocore;
    pub mod exomind {
        pub mod v1 {
            #[path = "../../exomind.base.v1.rs"]
            pub mod base;
        }
    }
}
pub mod base {
    pub use super::generated::exomind::v1::base::*;
    use exocore::protos::message::NamedMessage;

    impl NamedMessage for Collection {
        fn full_name() -> &'static str {
            "exomind.base.v1.Collection"
        }
    }

    impl NamedMessage for CollectionChild {
        fn full_name() -> &'static str {
            "exomind.base.v1.CollectionChild"
        }
    }

    impl NamedMessage for Snoozed {
        fn full_name() -> &'static str {
            "exomind.base.v1.Snoozed"
        }
    }

    impl NamedMessage for Unread {
        fn full_name() -> &'static str {
            "exomind.base.v1.Unread"
        }
    }

    impl NamedMessage for Account {
        fn full_name() -> &'static str {
            "exomind.base.v1.Account"
        }
    }

    impl NamedMessage for EmailThread {
        fn full_name() -> &'static str {
            "exomind.base.v1.EmailThread"
        }
    }

    impl NamedMessage for Email {
        fn full_name() -> &'static str {
            "exomind.base.v1.Email"
        }
    }

    impl NamedMessage for DraftEmail {
        fn full_name() -> &'static str {
            "exomind.base.v1.DraftEmail"
        }
    }

    impl NamedMessage for EmailPart {
        fn full_name() -> &'static str {
            "exomind.base.v1.EmailPart"
        }
    }

    impl NamedMessage for EmailAttachment {
        fn full_name() -> &'static str {
            "exomind.base.v1.EmailAttachment"
        }
    }

    impl NamedMessage for Note {
        fn full_name() -> &'static str {
            "exomind.base.v1.Note"
        }
    }

    impl NamedMessage for Task {
        fn full_name() -> &'static str {
            "exomind.base.v1.Task"
        }
    }

    impl NamedMessage for Link {
        fn full_name() -> &'static str {
            "exomind.base.v1.Link"
        }
    }

    impl NamedMessage for Contact {
        fn full_name() -> &'static str {
            "exomind.base.v1.Contact"
        }
    }
}