rmemstore_messages/
rmemstore.rs

1// This file is @generated by prost-build.
2/// An action to be taken
3#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct Rpc {
6    #[prost(uint64, tag = "1")]
7    pub id: u64,
8    #[prost(uint32, tag = "2")]
9    pub code: u32,
10    #[prost(oneof = "rpc::Command", tags = "3, 4")]
11    pub command: ::core::option::Option<rpc::Command>,
12}
13/// Nested message and enum types in `Rpc`.
14pub mod rpc {
15    #[allow(clippy::derive_partial_eq_without_eq)]
16    #[derive(Clone, PartialEq, ::prost::Oneof)]
17    pub enum Command {
18        /// Response kind: ok
19        #[prost(message, tag = "3")]
20        Put(super::Put),
21        /// Response kind: Value
22        #[prost(message, tag = "4")]
23        Get(super::Get),
24    }
25}
26#[allow(clippy::derive_partial_eq_without_eq)]
27#[derive(Clone, PartialEq, ::prost::Message)]
28pub struct Response {
29    #[prost(uint64, tag = "1")]
30    pub id: u64,
31    #[prost(uint32, tag = "2")]
32    pub code: u32,
33    #[prost(oneof = "response::Kind", tags = "3, 4")]
34    pub kind: ::core::option::Option<response::Kind>,
35}
36/// Nested message and enum types in `Response`.
37pub mod response {
38    #[allow(clippy::derive_partial_eq_without_eq)]
39    #[derive(Clone, PartialEq, ::prost::Oneof)]
40    pub enum Kind {
41        #[prost(bool, tag = "3")]
42        Ok(bool),
43        #[prost(message, tag = "4")]
44        Value(super::Value),
45    }
46}
47#[allow(clippy::derive_partial_eq_without_eq)]
48#[derive(Clone, PartialEq, ::prost::Message)]
49pub struct Value {
50    #[prost(oneof = "value::Kind", tags = "1, 2, 3")]
51    pub kind: ::core::option::Option<value::Kind>,
52}
53/// Nested message and enum types in `Value`.
54pub mod value {
55    #[allow(clippy::derive_partial_eq_without_eq)]
56    #[derive(Clone, PartialEq, ::prost::Oneof)]
57    pub enum Kind {
58        #[prost(bytes, tag = "1")]
59        Blob(::prost::bytes::Bytes),
60        #[prost(string, tag = "2")]
61        String(::prost::alloc::string::String),
62        #[prost(message, tag = "3")]
63        Map(super::Map),
64    }
65}
66#[allow(clippy::derive_partial_eq_without_eq)]
67#[derive(Clone, PartialEq, ::prost::Message)]
68pub struct Map {
69    #[prost(map = "string, message", tag = "1")]
70    pub map: ::std::collections::HashMap<::prost::alloc::string::String, Value>,
71}
72/// Returns response.kind.ok
73#[allow(clippy::derive_partial_eq_without_eq)]
74#[derive(Clone, PartialEq, ::prost::Message)]
75pub struct Put {
76    #[prost(bytes = "bytes", tag = "1")]
77    pub key: ::prost::bytes::Bytes,
78    #[prost(message, optional, tag = "2")]
79    pub value: ::core::option::Option<Value>,
80}
81/// Returns response.kind.value, or no value upon a miss.
82#[allow(clippy::derive_partial_eq_without_eq)]
83#[derive(Clone, PartialEq, ::prost::Message)]
84pub struct Get {
85    #[prost(bytes = "bytes", tag = "1")]
86    pub key: ::prost::bytes::Bytes,
87}