pub struct ErrorCollection {
pub error_messages: Option<Vec<String>>,
pub errors: Option<HashMap<String, String>>,
pub status: Option<i32>,
}
Expand description
ErrorCollection : Error messages from an operation.
Fields§
§error_messages: Option<Vec<String>>
The list of error messages produced by this operation. For example, "input parameter ‘key’ must be provided"
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."
status: Option<i32>
Implementations§
Source§impl ErrorCollection
impl ErrorCollection
Sourcepub fn new() -> ErrorCollection
pub fn new() -> ErrorCollection
Error messages from an operation.
Trait Implementations§
Source§impl Clone for ErrorCollection
impl Clone for ErrorCollection
Source§fn clone(&self) -> ErrorCollection
fn clone(&self) -> ErrorCollection
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 ErrorCollection
impl Debug for ErrorCollection
Source§impl Default for ErrorCollection
impl Default for ErrorCollection
Source§fn default() -> ErrorCollection
fn default() -> ErrorCollection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ErrorCollection
impl<'de> Deserialize<'de> for ErrorCollection
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 ErrorCollection
impl PartialEq for ErrorCollection
Source§impl Serialize for ErrorCollection
impl Serialize for ErrorCollection
impl StructuralPartialEq for ErrorCollection
Auto Trait Implementations§
impl Freeze for ErrorCollection
impl RefUnwindSafe for ErrorCollection
impl Send for ErrorCollection
impl Sync for ErrorCollection
impl Unpin for ErrorCollection
impl UnwindSafe for ErrorCollection
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