pub struct ApiErrorDetail(pub Vec<HashMap<String, Box<IntegerStringOrObject>>>);Expand description
Details about API errors.
Tuple Fields§
§0: Vec<HashMap<String, Box<IntegerStringOrObject>>>Implementations§
Source§impl ApiErrorDetail
impl ApiErrorDetail
Sourcepub fn get_values<T: FromErrorDetail>(&self) -> impl Iterator<Item = T> + '_
pub fn get_values<T: FromErrorDetail>(&self) -> impl Iterator<Item = T> + '_
Get values of type T form self.
Sourcepub fn get_integer(
map: &HashMap<String, Box<IntegerStringOrObject>>,
key: &str,
) -> Option<i64>
pub fn get_integer( map: &HashMap<String, Box<IntegerStringOrObject>>, key: &str, ) -> Option<i64>
Get a value from map as integer.
Sourcepub fn get_string<'a>(
map: &'a HashMap<String, Box<IntegerStringOrObject>>,
key: &str,
) -> Option<&'a String>
pub fn get_string<'a>( map: &'a HashMap<String, Box<IntegerStringOrObject>>, key: &str, ) -> Option<&'a String>
Get a value from map as string.
Sourcepub fn get_object<'a>(
map: &'a HashMap<String, Box<IntegerStringOrObject>>,
key: &str,
) -> Option<&'a HashMap<String, Box<IntegerStringOrObject>>>
pub fn get_object<'a>( map: &'a HashMap<String, Box<IntegerStringOrObject>>, key: &str, ) -> Option<&'a HashMap<String, Box<IntegerStringOrObject>>>
Get an value from map as a nested object.
Trait Implementations§
Source§impl Debug for ApiErrorDetail
impl Debug for ApiErrorDetail
Source§impl<'de> Deserialize<'de> for ApiErrorDetail
impl<'de> Deserialize<'de> for ApiErrorDetail
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ApiErrorDetail
impl RefUnwindSafe for ApiErrorDetail
impl Send for ApiErrorDetail
impl Sync for ApiErrorDetail
impl Unpin for ApiErrorDetail
impl UnwindSafe for ApiErrorDetail
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more