momento_protos/
function_types.rs1#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct Function {
5 #[prost(string, tag = "1")]
7 pub function_id: ::prost::alloc::string::String,
8 #[prost(string, tag = "2")]
10 pub name: ::prost::alloc::string::String,
11 #[prost(string, tag = "3")]
13 pub description: ::prost::alloc::string::String,
14 #[prost(message, optional, tag = "4")]
16 pub current_version: ::core::option::Option<CurrentFunctionVersion>,
17 #[prost(uint32, tag = "5")]
19 pub latest_version: u32,
20 #[prost(uint32, tag = "6")]
22 pub concurrency_limit: u32,
23 #[prost(string, tag = "7")]
25 pub last_updated_at: ::prost::alloc::string::String,
26}
27#[derive(Clone, Copy, PartialEq, ::prost::Message)]
28pub struct CurrentFunctionVersion {
29 #[prost(oneof = "current_function_version::Version", tags = "1, 2")]
30 pub version: ::core::option::Option<current_function_version::Version>,
31}
32pub mod current_function_version {
34 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
35 pub struct Latest {}
36 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
37 pub struct Pinned {
38 #[prost(uint32, tag = "1")]
39 pub pinned_version: u32,
40 }
41 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
42 pub enum Version {
43 #[prost(message, tag = "1")]
44 Latest(Latest),
45 #[prost(message, tag = "2")]
46 Pinned(Pinned),
47 }
48}
49#[derive(Clone, PartialEq, ::prost::Message)]
51pub struct FunctionVersion {
52 #[prost(message, optional, tag = "1")]
54 pub id: ::core::option::Option<FunctionId>,
55 #[prost(message, optional, tag = "20")]
57 pub wasm_id: ::core::option::Option<WasmId>,
58 #[prost(map = "string, message", tag = "40")]
60 pub environment: ::std::collections::HashMap<
61 ::prost::alloc::string::String,
62 EnvironmentValue,
63 >,
64}
65#[derive(Clone, PartialEq, ::prost::Message)]
66pub struct EnvironmentValue {
67 #[prost(oneof = "environment_value::Value", tags = "1")]
68 pub value: ::core::option::Option<environment_value::Value>,
69}
70pub mod environment_value {
72 #[derive(Clone, PartialEq, ::prost::Oneof)]
73 pub enum Value {
74 #[prost(string, tag = "1")]
76 Literal(::prost::alloc::string::String),
77 }
78}
79#[derive(Clone, PartialEq, ::prost::Message)]
84pub struct Wasm {
85 #[prost(message, optional, tag = "1")]
89 pub id: ::core::option::Option<WasmId>,
90 #[prost(string, tag = "2")]
92 pub name: ::prost::alloc::string::String,
93 #[prost(string, tag = "3")]
95 pub description: ::prost::alloc::string::String,
96}
97#[derive(Clone, PartialEq, ::prost::Message)]
98pub struct FunctionId {
99 #[prost(string, tag = "1")]
101 pub id: ::prost::alloc::string::String,
102 #[prost(uint32, tag = "2")]
104 pub version: u32,
105}
106#[derive(Clone, PartialEq, ::prost::Message)]
107pub struct WasmId {
108 #[prost(string, tag = "1")]
110 pub id: ::prost::alloc::string::String,
111 #[prost(uint32, tag = "2")]
113 pub version: u32,
114}