pub struct SimpleErrorCollection {
pub errors: Option<HashMap<String, String>>,
pub error_messages: Option<Vec<String>>,
pub http_status_code: Option<i32>,
}
Fields§
§errors: Option<HashMap<String, String>>
The list of errors by parameter returned by the operation. For example,"projectKey": "Project keys must start with an uppercase letter, followed by one or more uppercase alphanumeric characters."
error_messages: Option<Vec<String>>
The list of error messages produced by this operation. For example, "input parameter ‘key’ must be provided"
http_status_code: Option<i32>
Implementations§
Source§impl SimpleErrorCollection
impl SimpleErrorCollection
pub fn new() -> SimpleErrorCollection
Trait Implementations§
Source§impl Clone for SimpleErrorCollection
impl Clone for SimpleErrorCollection
Source§fn clone(&self) -> SimpleErrorCollection
fn clone(&self) -> SimpleErrorCollection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SimpleErrorCollection
impl Debug for SimpleErrorCollection
Source§impl Default for SimpleErrorCollection
impl Default for SimpleErrorCollection
Source§fn default() -> SimpleErrorCollection
fn default() -> SimpleErrorCollection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SimpleErrorCollection
impl<'de> Deserialize<'de> for SimpleErrorCollection
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
Source§impl PartialEq for SimpleErrorCollection
impl PartialEq for SimpleErrorCollection
Source§impl Serialize for SimpleErrorCollection
impl Serialize for SimpleErrorCollection
impl StructuralPartialEq for SimpleErrorCollection
Auto Trait Implementations§
impl Freeze for SimpleErrorCollection
impl RefUnwindSafe for SimpleErrorCollection
impl Send for SimpleErrorCollection
impl Sync for SimpleErrorCollection
impl Unpin for SimpleErrorCollection
impl UnwindSafe for SimpleErrorCollection
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