11// This file is @generated by prost-build.
22#[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
3+ /// setting model
34pub struct SettingModel {
45 #[ prost( string, tag = "1" ) ]
6+ /// id
57 pub id : :: prost:: alloc:: string:: String ,
68 #[ prost( string, tag = "2" ) ]
9+ /// identifier
710 pub identifier : :: prost:: alloc:: string:: String ,
811 #[ prost( string, tag = "3" ) ]
12+ /// value
913 pub value : :: prost:: alloc:: string:: String ,
1014 #[ prost( message, optional, tag = "4" ) ]
15+ /// created at
1116 pub created_at : :: core:: option:: Option < :: prost_types:: Timestamp > ,
1217 #[ prost( message, optional, tag = "5" ) ]
18+ /// updated at
1319 pub updated_at : :: core:: option:: Option < :: prost_types:: Timestamp > ,
20+
1421 #[ prost( string, tag = "6" ) ]
22+ /// created by
1523 pub created_by : :: prost:: alloc:: string:: String ,
1624 #[ prost( string, tag = "7" ) ]
25+ /// updated by
1726 pub updated_by : :: prost:: alloc:: string:: String ,
1827}
1928#[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
29+ /// setting save model
2030pub struct SettingSaveModel {
2131 #[ prost( string, tag = "1" ) ]
32+ /// id
2233 pub id : :: prost:: alloc:: string:: String ,
2334 #[ prost( string, tag = "2" ) ]
35+ /// identifier
2436 pub identifier : :: prost:: alloc:: string:: String ,
2537 #[ prost( string, tag = "3" ) ]
38+ /// value
2639 pub value : :: prost:: alloc:: string:: String ,
2740}
2841/// Setting services
2942#[ derive( Clone , Copy , PartialEq , Eq , Hash , :: prost:: Message ) ]
43+ /// get setting request
3044pub struct GetSettingRequest { }
3145#[ derive( Clone , PartialEq , :: prost:: Message ) ]
46+ /// get setting response
3247pub struct GetSettingResponse {
3348 #[ prost( bool , tag = "1" ) ]
49+ /// status
3450 pub status : bool ,
3551 #[ prost( message, repeated, tag = "2" ) ]
52+ /// data
3653 pub data : :: prost:: alloc:: vec:: Vec < SettingModel > ,
3754}
3855#[ derive( Clone , PartialEq , :: prost:: Message ) ]
56+ /// store setting request
3957pub struct StoreSettingRequest {
4058 #[ prost( message, repeated, tag = "1" ) ]
59+ /// data
4160 pub data : :: prost:: alloc:: vec:: Vec < SettingSaveModel > ,
4261}
4362#[ derive( Clone , Copy , PartialEq , Eq , Hash , :: prost:: Message ) ]
63+ /// store setting request
4464pub struct StoreSettingResponse {
4565 #[ prost( bool , tag = "1" ) ]
66+ /// status
4667 pub status : bool ,
4768}
4869/// Generated client implementations.
@@ -75,8 +96,8 @@ pub mod setting_client {
7596 where
7697 T : tonic:: client:: GrpcService < tonic:: body:: Body > ,
7798 T :: Error : Into < StdError > ,
78- T :: ResponseBody : Body < Data = Bytes > + std :: marker :: Send + ' static ,
79- <T :: ResponseBody as Body >:: Error : Into < StdError > + std :: marker :: Send ,
99+ T :: ResponseBody : Body < Data = Bytes > + Send + ' static ,
100+ <T :: ResponseBody as Body >:: Error : Into < StdError > + Send ,
80101 {
81102 pub fn new ( inner : T ) -> Self {
82103 let inner = tonic:: client:: Grpc :: new ( inner) ;
@@ -93,15 +114,15 @@ pub mod setting_client {
93114 where
94115 F : tonic:: service:: Interceptor ,
95116 T :: ResponseBody : Default ,
96- T : tonic :: codegen :: Service <
117+ T : Service <
97118 http:: Request < tonic:: body:: Body > ,
98119 Response = http:: Response <
99120 <T as tonic:: client:: GrpcService < tonic:: body:: Body > >:: ResponseBody ,
100121 > ,
101122 > ,
102- <T as tonic :: codegen :: Service <
123+ <T as Service <
103124 http:: Request < tonic:: body:: Body > ,
104- > >:: Error : Into < StdError > + std :: marker :: Send + std :: marker :: Sync ,
125+ > >:: Error : Into < StdError > + Send + Sync ,
105126 {
106127 SettingClient :: new ( InterceptedService :: new ( inner, interceptor) )
107128 }
@@ -139,7 +160,7 @@ pub mod setting_client {
139160 pub async fn get_setting (
140161 & mut self ,
141162 request : impl tonic:: IntoRequest < super :: GetSettingRequest > ,
142- ) -> std :: result :: Result <
163+ ) -> Result <
143164 tonic:: Response < super :: GetSettingResponse > ,
144165 tonic:: Status ,
145166 > {
@@ -163,7 +184,7 @@ pub mod setting_client {
163184 pub async fn store_setting (
164185 & mut self ,
165186 request : impl tonic:: IntoRequest < super :: StoreSettingRequest > ,
166- ) -> std :: result :: Result <
187+ ) -> Result <
167188 tonic:: Response < super :: StoreSettingResponse > ,
168189 tonic:: Status ,
169190 > {
@@ -198,18 +219,18 @@ pub mod setting_server {
198219 use tonic:: codegen:: * ;
199220 /// Generated trait containing gRPC methods that should be implemented for use with SettingServer.
200221 #[ async_trait]
201- pub trait Setting : std :: marker :: Send + std :: marker :: Sync + ' static {
222+ pub trait Setting : Send + Sync + ' static {
202223 async fn get_setting (
203224 & self ,
204225 request : tonic:: Request < super :: GetSettingRequest > ,
205- ) -> std :: result :: Result <
226+ ) -> Result <
206227 tonic:: Response < super :: GetSettingResponse > ,
207228 tonic:: Status ,
208229 > ;
209230 async fn store_setting (
210231 & self ,
211232 request : tonic:: Request < super :: StoreSettingRequest > ,
212- ) -> std :: result :: Result <
233+ ) -> Result <
213234 tonic:: Response < super :: StoreSettingResponse > ,
214235 tonic:: Status ,
215236 > ;
@@ -273,19 +294,19 @@ pub mod setting_server {
273294 self
274295 }
275296 }
276- impl < T , B > tonic :: codegen :: Service < http:: Request < B > > for SettingServer < T >
297+ impl < T , B > Service < http:: Request < B > > for SettingServer < T >
277298 where
278299 T : Setting ,
279- B : Body + std :: marker :: Send + ' static ,
280- B :: Error : Into < StdError > + std :: marker :: Send + ' static ,
300+ B : Body + Send + ' static ,
301+ B :: Error : Into < StdError > + Send + ' static ,
281302 {
282303 type Response = http:: Response < tonic:: body:: Body > ;
283304 type Error = std:: convert:: Infallible ;
284305 type Future = BoxFuture < Self :: Response , Self :: Error > ;
285306 fn poll_ready (
286307 & mut self ,
287308 _cx : & mut Context < ' _ > ,
288- ) -> Poll < std :: result :: Result < ( ) , Self :: Error > > {
309+ ) -> Poll < Result < ( ) , Self :: Error > > {
289310 Poll :: Ready ( Ok ( ( ) ) )
290311 }
291312 fn call ( & mut self , req : http:: Request < B > ) -> Self :: Future {
0 commit comments