Struct json_api::doc::ErrorSource
[−]
[src]
pub struct ErrorSource { pub parameter: Option<String>, pub pointer: Option<String>, // some fields omitted }
References to the source of the error.
Fields
parameter: Option<String>
A string indicating which query parameter caused the error.
pointer: Option<String>
A JSON pointer to the associated entity in the request document.
Methods
impl ErrorSource
[src]
fn new(parameter: Option<String>, pointer: Option<String>) -> Self
[src]
Returns a new ErrorSource
with the specified parameter
and
pointer
values.
Trait Implementations
impl Clone for ErrorSource
[src]
fn clone(&self) -> ErrorSource
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ErrorSource
[src]
impl Default for ErrorSource
[src]
fn default() -> ErrorSource
[src]
Returns the "default value" for a type. Read more
impl Eq for ErrorSource
[src]
impl PartialEq for ErrorSource
[src]
fn eq(&self, __arg_0: &ErrorSource) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ErrorSource) -> bool
[src]
This method tests for !=
.