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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
// @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, PartialEq, ::prost::Message)]
pub struct SendMessageOutput {
    /// An error message, if there was an error.
    #[prost(string, optional, tag="1")]
    pub error: ::core::option::Option<::prost::alloc::string::String>,
}
/// \[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, PartialEq, ::prost::Message)]
pub struct ReactOutput {
    /// An error message, if there was an error.
    #[prost(string, optional, tag="1")]
    pub error: ::core::option::Option<::prost::alloc::string::String>,
}
/// \[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>,
    /// An error message, if there was an error.
    #[prost(string, optional, tag="2")]
    pub error: ::core::option::Option<::prost::alloc::string::String>,
}
/// \[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, PartialEq, ::prost::Message)]
pub struct CronOutput {
    /// An error message, if there was an error.
    #[prost(string, optional, tag="1")]
    pub error: ::core::option::Option<::prost::alloc::string::String>,
}
/// \[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, PartialEq, ::prost::Message)]
pub struct OneShotOutput {
    /// An error message, if there was an error.
    #[prost(string, optional, tag="1")]
    pub error: ::core::option::Option<::prost::alloc::string::String>,
}
/// \[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, PartialEq, ::prost::Message)]
pub struct ReloadPluginOutput {
    /// An error message, if there was an error.
    #[prost(string, optional, tag="1")]
    pub error: ::core::option::Option<::prost::alloc::string::String>,
}
/// \[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,
    /// An error message, if there was an error.
    #[prost(string, optional, tag="3")]
    pub error: ::core::option::Option<::prost::alloc::string::String>,
}
/// \[Internal\] Input to a InstructionKind::ChatCommand request to Hank.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChatCommandInput {
    /// 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 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, PartialEq, ::prost::Message)]
pub struct ChatMessageInput {
    /// The chat message.
    #[prost(message, optional, tag="1")]
    pub message: ::core::option::Option<message::Message>,
}
/// \[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, PartialEq, ::prost::Message)]
pub struct ScheduledJobInput {
    #[prost(oneof="scheduled_job_input::ScheduledJob", tags="1, 2")]
    pub scheduled_job: ::core::option::Option<scheduled_job_input::ScheduledJob>,
}
/// Nested message and enum types in `ScheduledJobInput`.
pub mod scheduled_job_input {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum ScheduledJob {
        /// A cronjob to send to Hank.
        #[prost(message, tag="1")]
        CronJob(super::cron::CronJob),
        /// A one shot to send to Hank.
        #[prost(message, tag="2")]
        OneShotJob(super::cron::OneShotJob),
    }
}
/// \[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 instruct plugin request to Hank.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstructPluginInput {
    /// The the instruction to send to a Hank plugin.
    #[prost(message, optional, tag="1")]
    pub instruction: ::core::option::Option<plugin::Instruction>,
}
/// \[Internal\] Output from a instruct plugin request to Hank.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstructPluginOutput {
    /// An error message, if there was an error.
    #[prost(string, optional, tag="1")]
    pub error: ::core::option::Option<::prost::alloc::string::String>,
}
/// \[Internal\] Input to an unload plugin request to Hank.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnloadPluginInput {
    /// The plugin to unload.
    #[prost(string, tag="1")]
    pub plugin: ::prost::alloc::string::String,
    /// Whether or not hank should clean up any plugin assets, e.g. database file.
    /// This should be set to true if this plugin is being unloaded as a result
    /// of an uninstall command.
    #[prost(bool, tag="2")]
    pub cleanup: bool,
}
/// \[Internal\] Output from an unload plugin request to Hank.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnloadPluginOutput {
    /// An error message, if there was an error.
    #[prost(string, optional, tag="1")]
    pub error: ::core::option::Option<::prost::alloc::string::String>,
}
/// \[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)