Home
last modified time | relevance | path

Searched refs:String (Results 1 – 25 of 53) sorted by relevance

123

/tonic/tonic-types/src/richer_error/error_details/
H A Dmod.rs95 detail: impl Into<String>, in with_debug_info() argument
134 subject: impl Into<String>, in with_quota_failure_violation() argument
158 reason: impl Into<String>, in with_error_info() argument
159 domain: impl Into<String>, in with_error_info() argument
160 metadata: impl Into<HashMap<String, String>>, in with_error_info() argument
260 field: impl Into<String>, in with_bad_request_violation() argument
310 owner: impl Into<String>, in with_resource_info() argument
357 pub fn with_help_link(description: impl Into<String>, url: impl Into<String>) -> Self { in with_help_link() argument
567 metadata: impl Into<HashMap<String, String>>, in set_error_info() argument
704 field: impl Into<String>, in add_bad_request_violation() argument
[all …]
/tonic/tonic-types/src/generated/
H A Dgoogle_rpc.rs18 pub message: ::prost::alloc::string::String,
51 pub detail: ::prost::alloc::string::String,
127 pub reason: ::prost::alloc::string::String,
135 pub domain: ::prost::alloc::string::String,
146 ::prost::alloc::string::String,
147 ::prost::alloc::string::String,
201 pub field: ::prost::alloc::string::String,
237 pub owner: ::prost::alloc::string::String,
265 pub url: ::prost::alloc::string::String,
276 pub locale: ::prost::alloc::string::String,
[all …]
/tonic/tonic/benches-disabled/benchmarks/
H A Drequest_response_diverse_types.rs6 fn build_request(_name: String) { in build_request() argument
25 field205: String::from("idiopathic"), in build_request()
31 field1: String::from("foo"), in build_request()
32 field9: String::from("red"), in build_request()
33 field18: String::from("red"), in build_request()
41 field4: String::from("red"), in build_request()
44 field7: String::from("blue"), in build_request()
54 field102: String::from("green"), in build_request()
55 field103: String::from("pink"), in build_request()
70 field129: String::from("red"), in build_request()
H A Dutils.rs4 pub fn generate_rnd_string(string_size: usize) -> Result<String, Box<dyn std::error::Error>> { in generate_rnd_string() argument
5 let rand_name: String = thread_rng() in generate_rnd_string()
/tonic/tonic-build/src/
H A Dmanual.rs59 name: Option<String>,
63 comments: Vec<String>,
117 name: String,
119 package: String,
121 comments: Vec<String>,
134 type Comment = String;
163 name: String,
165 route_name: String,
169 input_type: String,
171 output_type: String,
[all …]
H A Dlib.rs160 module: Vec<(String, String)>,
162 structure: Vec<(String, String)>,
183 pub fn push_mod(&mut self, pattern: impl Into<String>, attr: impl Into<String>) { in push_mod() argument
196 pub fn push_struct(&mut self, pattern: impl Into<String>, attr: impl Into<String>) { in push_struct() argument
201 fn format_service_name<T: Service>(service: &T, emit_package: bool) -> String { in format_service_name() argument
211 fn format_method_path<T: Service>(service: &T, method: &T::Method, emit_package: bool) -> String { in format_method_path() argument
219 fn format_method_name<T: Service>(service: &T, method: &T::Method, emit_package: bool) -> String { in format_method_name() argument
230 attrs: impl IntoIterator<Item = &'a (String, String)>, in generate_attributes() argument
318 fn naive_snake_case(name: &str) -> String { in naive_snake_case() argument
319 let mut s = String::new(); in naive_snake_case()
H A Dprost.rs104 type Comment = String;
128 type Comment = String;
294 pub(crate) extern_path: Vec<(String, String)>,
295 pub(crate) field_attributes: Vec<(String, String)>,
296 pub(crate) type_attributes: Vec<(String, String)>,
297 pub(crate) message_attributes: Vec<(String, String)>,
298 pub(crate) enum_attributes: Vec<(String, String)>,
299 pub(crate) boxed: Vec<String>,
301 pub(crate) bytes: Option<Vec<String>>,
304 pub(crate) proto_path: String,
[all …]
/tonic/tonic-types/src/richer_error/std_messages/
H A Dprec_failure.rs17 pub r#type: String,
20 pub subject: String,
23 pub description: String,
29 r#type: impl Into<String>, in new() argument
30 subject: impl Into<String>, in new() argument
31 description: impl Into<String>, in new() argument
87 subject: impl Into<String>, in with_violation() argument
88 description: impl Into<String>, in with_violation() argument
103 r#type: impl Into<String>, in add_violation() argument
104 subject: impl Into<String>, in add_violation() argument
[all …]
H A Dresource_info.rs15 pub resource_type: String,
18 pub resource_name: String,
21 pub owner: String,
24 pub description: String,
33 resource_type: impl Into<String>, in new() argument
34 resource_name: impl Into<String>, in new() argument
35 owner: impl Into<String>, in new() argument
36 description: impl Into<String>, in new() argument
H A Derror_info.rs21 pub reason: String,
25 pub domain: String,
29 pub metadata: HashMap<String, String>,
38 reason: impl Into<String>, in new() argument
39 domain: impl Into<String>, in new() argument
40 metadata: impl Into<HashMap<String, String>>, in new() argument
H A Dhelp.rs12 pub description: String,
15 pub url: String,
20 pub fn new(description: impl Into<String>, url: impl Into<String>) -> Self { in new() argument
69 pub fn with_link(description: impl Into<String>, url: impl Into<String>) -> Self { in with_link() argument
81 description: impl Into<String>, in add_link() argument
82 url: impl Into<String>, in add_link() argument
H A Dbad_request.rs15 pub field: String,
18 pub description: String,
23 pub fn new(field: impl Into<String>, description: impl Into<String>) -> Self { in new() argument
73 pub fn with_violation(field: impl Into<String>, description: impl Into<String>) -> Self { in with_violation() argument
85 field: impl Into<String>, in add_violation() argument
86 description: impl Into<String>, in add_violation() argument
H A Dquota_failure.rs13 pub subject: String,
16 pub description: String,
21 pub fn new(subject: impl Into<String>, description: impl Into<String>) -> Self { in new() argument
70 pub fn with_violation(subject: impl Into<String>, description: impl Into<String>) -> Self { in with_violation() argument
82 subject: impl Into<String>, in add_violation() argument
83 description: impl Into<String>, in add_violation() argument
H A Drequest_info.rs17 pub request_id: String,
21 pub serving_data: String,
29 pub fn new(request_id: impl Into<String>, serving_data: impl Into<String>) -> Self { in new() argument
H A Dloc_message.rs19 pub locale: String,
22 pub message: String,
30 pub fn new(locale: impl Into<String>, message: impl Into<String>) -> Self { in new() argument
H A Ddebug_info.rs15 pub stack_entries: Vec<String>,
18 pub detail: String,
26 pub fn new(stack_entries: impl Into<Vec<String>>, detail: impl Into<String>) -> Self { in new() argument
/tonic/tonic/benches-disabled/benchmarks/compiled_protos/
H A Ddiverse_types.rs4 pub field1: std::string::String,
6 pub field9: std::string::String,
8 pub field18: std::string::String,
24 pub field4: std::string::String,
30 pub field7: std::string::String,
50 pub field102: std::string::String,
52 pub field103: std::string::String,
82 pub field129: std::string::String,
95 pub field15: std::string::String,
123 pub field205: std::string::String,
/tonic/tests/extern_path/uuid/src/
H A Dlib.rs4 fn do_it(&self) -> String; in do_it() argument
8 fn do_it(&self) -> String { in do_it() argument
/tonic/tonic-reflection/src/server/
H A Dmod.rs24 service_names: Vec<String>,
70 pub fn with_service_name(mut self, name: impl Into<String>) -> Self { in with_service_name()
116 service_names: Vec<String>,
117 files: HashMap<String, Arc<FileDescriptorProto>>,
118 symbols: HashMap<String, Arc<FileDescriptorProto>>,
123 service_names: Vec<String>, in new() argument
248 fn list_services(&self) -> &[String] { in list_services() argument
284 maybe_name: Option<&String>, in extract_name() argument
285 ) -> Result<String, Error> { in extract_name() argument
307 InvalidFileDescriptorSet(String),
/tonic/tonic/src/
H A Dstatus.rs42 message: String,
173 pub fn ok(message: impl Into<String>) -> Status { in ok()
178 pub fn cancelled(message: impl Into<String>) -> Status { in cancelled()
186 pub fn unknown(message: impl Into<String>) -> Status { in unknown()
208 pub fn not_found(message: impl Into<String>) -> Status { in not_found()
256 pub fn aborted(message: impl Into<String>) -> Status { in aborted()
284 pub fn internal(message: impl Into<String>) -> Status { in internal()
293 pub fn unavailable(message: impl Into<String>) -> Status { in unavailable()
298 pub fn data_loss(message: impl Into<String>) -> Status { in data_loss()
448 None => Ok(String::new()), in from_header_map()
[all …]
/tonic/tonic-reflection/tests/
H A Dserver.rs31 message_request: Some(MessageRequest::ListServices(String::new())), in test_list_services()
39 name: String::from("grpc.reflection.v1.ServerReflection") in test_list_services()
51 message_request: Some(MessageRequest::FileByFilename(String::from( in test_file_by_filename()
75 message_request: Some(MessageRequest::FileContainingSymbol(String::from( in test_file_containing_symbol()
H A Dversions.rs17 String::new(), in test_v1()
28 name: String::from("grpc.reflection.v1.ServerReflection") in test_v1()
41 v1alpha::server_reflection_request::MessageRequest::ListServices(String::new()), in test_v1alpha()
52 name: String::from("grpc.reflection.v1alpha.ServerReflection") in test_v1alpha()
/tonic/examples/src/dynamic/
H A Dserver.rs34 fn init_echo(args: &[String], builder: &mut RoutesBuilder) { in init_echo() argument
61 fn init_greeter(args: &[String], builder: &mut RoutesBuilder) { in init_greeter() argument
73 let args: Vec<String> = env::args().collect(); in main()
/tonic/tonic-reflection/src/generated/
H A Dgrpc_reflection_v1.rs6 pub host: ::prost::alloc::string::String,
24 FileByFilename(::prost::alloc::string::String),
29 FileContainingSymbol(::prost::alloc::string::String),
43 AllExtensionNumbersOfType(::prost::alloc::string::String),
47 ListServices(::prost::alloc::string::String),
56 pub containing_type: ::prost::alloc::string::String,
64 pub valid_host: ::prost::alloc::string::String,
117 pub base_type_name: ::prost::alloc::string::String,
136 pub name: ::prost::alloc::string::String,
145 pub error_message: ::prost::alloc::string::String,
H A Dgrpc_reflection_v1alpha.rs6 pub host: ::prost::alloc::string::String,
24 FileByFilename(::prost::alloc::string::String),
29 FileContainingSymbol(::prost::alloc::string::String),
43 AllExtensionNumbersOfType(::prost::alloc::string::String),
47 ListServices(::prost::alloc::string::String),
56 pub containing_type: ::prost::alloc::string::String,
64 pub valid_host: ::prost::alloc::string::String,
117 pub base_type_name: ::prost::alloc::string::String,
136 pub name: ::prost::alloc::string::String,
145 pub error_message: ::prost::alloc::string::String,

123