Searched refs:bad_request (Results 1 – 9 of 9) sorted by relevance
| /tonic/examples/src/richer-error/ |
| H A D | server_vec.rs | 26 let mut bad_request = BadRequest::new(vec![]); in say_hello() localVariable 30 bad_request.add_violation("name", "name cannot be empty"); in say_hello() 32 bad_request.add_violation("name", "name is too long"); in say_hello() 35 if !bad_request.is_empty() { in say_hello() 45 vec![bad_request.into(), help.into(), localized_message.into()], in say_hello()
|
| H A D | client.rs | 30 if let Some(bad_request) = err_details.bad_request() { in main() 32 println!(" {:?}", bad_request); in main()
|
| H A D | client_vec.rs | 33 ErrorDetail::BadRequest(bad_request) => { in main() 35 println!(" {:?}", bad_request); in main()
|
| /tonic/tonic-types/src/richer_error/error_details/ |
| H A D | mod.rs | 34 pub(crate) bad_request: Option<BadRequest>, field 241 bad_request: Some(BadRequest::new(field_violations)), in with_bad_request() 264 bad_request: Some(BadRequest::with_violation(field, description)), in with_bad_request_violation() 410 pub fn bad_request(&self) -> Option<&BadRequest> { in bad_request() method 411 self.bad_request.as_ref() in bad_request() 685 self.bad_request = Some(BadRequest::new(violations)); in set_bad_request() 707 match &mut self.bad_request { in add_bad_request_violation() 708 Some(bad_request) => { in add_bad_request_violation() 709 bad_request.add_violation(field, description); in add_bad_request_violation() 735 if let Some(bad_request) = &self.bad_request { in has_bad_request_violations() [all …]
|
| /tonic/tonic-types/src/richer_error/std_messages/ |
| H A D | mod.rs | 21 mod bad_request; module 23 pub use bad_request::{BadRequest, FieldViolation};
|
| H A D | bad_request.rs | 31 impl From<pb::bad_request::FieldViolation> for FieldViolation { 32 fn from(value: pb::bad_request::FieldViolation) -> Self { in from() 40 impl From<FieldViolation> for pb::bad_request::FieldViolation { 42 pb::bad_request::FieldViolation { in from()
|
| /tonic/tonic-types/src/generated/ |
| H A D | google_rpc.rs | 190 pub field_violations: ::prost::alloc::vec::Vec<bad_request::FieldViolation>, 193 pub mod bad_request { module
|
| /tonic/tonic-types/ |
| H A D | README.md | 87 if let Some(bad_request) = err_details.bad_request() { 88 // Handle bad_request details
|
| /tonic/tonic-types/src/richer_error/ |
| H A D | mod.rs | 514 if let Some(bad_request) = details.bad_request { in with_error_details_and_metadata() 515 conv_details.push(bad_request.into_any()); in with_error_details_and_metadata() 781 details.bad_request = Some(BadRequest::from_any_ref(any)?); in check_error_details()
|