hank_types/
hank.rs

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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
// @generated
// This file is @generated by prost-build.
/// \[Internal\] Input to a send message request to Hank.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SendMessageInput {
    /// The message to send to Hank.
    #[prost(message, optional, tag="1")]
    pub message: ::core::option::Option<message::Message>,
}
/// \[Internal\] Output from a send message request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SendMessageOutput {
}
/// \[Internal\] Input to a reaction request to Hank.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReactInput {
    /// The reaction to send to Hank.
    #[prost(message, optional, tag="1")]
    pub reaction: ::core::option::Option<message::Reaction>,
}
/// \[Internal\] Output from a reaction request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ReactOutput {
}
/// \[Internal\] Input to a db query request to Hank.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DbQueryInput {
    /// The prepared statement to send to Hank.
    #[prost(message, optional, tag="1")]
    pub prepared_statement: ::core::option::Option<database::PreparedStatement>,
}
/// \[Internal\] Output from a db query request to Hank.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DbQueryOutput {
    /// The database results from the query from Hank.
    #[prost(message, optional, tag="1")]
    pub results: ::core::option::Option<database::Results>,
}
/// \[Internal\] Input to a cron request to Hank.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CronInput {
    /// A cronjob to send to Hank.
    #[prost(message, optional, tag="1")]
    pub cron_job: ::core::option::Option<cron::CronJob>,
}
/// \[Internal\] Output from a cron request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CronOutput {
}
/// \[Internal\] Input to a one shot request to Hank.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OneShotInput {
    /// A one shot to send to Hank.
    #[prost(message, optional, tag="1")]
    pub one_shot_job: ::core::option::Option<cron::OneShotJob>,
}
/// \[Internal\] Output from a one shot request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct OneShotOutput {
}
/// \[Internal\] Input to a reload plugin request to Hank.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReloadPluginInput {
    /// The plugin to reload.
    #[prost(string, tag="1")]
    pub plugin: ::prost::alloc::string::String,
}
/// \[Internal\] Output from a reload plugin request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ReloadPluginOutput {
}
/// \[Internal\] Input to a load plugin request to Hank.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LoadPluginInput {
    /// A compiled plugin wasm file to load.
    #[prost(oneof="load_plugin_input::Wasm", tags="1, 2, 3")]
    pub wasm: ::core::option::Option<load_plugin_input::Wasm>,
}
/// Nested message and enum types in `LoadPluginInput`.
pub mod load_plugin_input {
    /// A compiled plugin wasm file to load.
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Wasm {
        /// Get compiled plugin wasm file from a url.
        #[prost(string, tag="1")]
        Url(::prost::alloc::string::String),
        /// Get compiled plugin wasm file from a path on hanks system.
        #[prost(string, tag="2")]
        Path(::prost::alloc::string::String),
        /// Compiled plugin wasm file as bytes.
        #[prost(bytes, tag="3")]
        Bytes(::prost::alloc::vec::Vec<u8>),
    }
}
/// \[Internal\] Output from a load plugin request to Hank.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LoadPluginOutput {
    /// The metadata returned by the loaded plugin.
    #[prost(message, optional, tag="1")]
    pub metadata: ::core::option::Option<plugin::Metadata>,
    /// The plugins extism::Manifest, as JSON.
    #[prost(string, tag="2")]
    pub manifest: ::prost::alloc::string::String,
}
/// \[Internal\] Input to a InstructionKind::ChatCommand request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ChatCommandInput {
}
/// \[Internal\] Output from a InstructionKind::ChatCommand request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ChatCommandOutput {
}
/// \[Internal\] Input to a InstructionKind::ChatMessage request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ChatMessageInput {
}
/// \[Internal\] Output from a InstructionKind::ChatMessage request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ChatMessageOutput {
}
/// \[Internal\] Input to a InstructionKind::GetMetadata request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GetMetadataInput {
}
/// \[Internal\] Output from a InstructionKind::GetMetadata request to Hank.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMetadataOutput {
    /// The metadata returned by the plugin.
    #[prost(message, optional, tag="1")]
    pub metadata: ::core::option::Option<plugin::Metadata>,
}
/// \[Internal\] Input to a InstructionKind::Initialize request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct InitializeInput {
}
/// \[Internal\] Output from a InstructionKind::Initialize request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct InitializeOutput {
}
/// \[Internal\] Input to a InstructionKind::Install request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct InstallInput {
}
/// \[Internal\] Output from a InstructionKind::Install request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct InstallOutput {
}
/// \[Internal\] Input to a InstructionKind::SheduledJob request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ScheduledJobInput {
}
/// \[Internal\] Output from a InstructionKind::ScheduledJob request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ScheduledJobOutput {
}
/// \[Internal\] Input to a InstructionKind::Shutdown request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ShutdownInput {
}
/// \[Internal\] Output from a InstructionKind::Shutdown request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ShutdownOutput {
}
/// \[Internal\] Input to a handle chat command request to Hank.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HandleChatCommandInput {
    /// The chat command context to send to Hank.
    #[prost(message, optional, tag="1")]
    pub context: ::core::option::Option<plugin::CommandContext>,
    /// The message that the chat command originates from.
    #[prost(message, optional, tag="2")]
    pub message: ::core::option::Option<message::Message>,
}
/// \[Internal\] Output from a handle chat command request to Hank.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct HandleChatCommandOutput {
}
// @@protoc_insertion_point(module)