Struct csv::DeserializeError [−][src]
pub struct DeserializeError { /* fields omitted */ }An Serde deserialization error.
Methods
impl DeserializeError[src]
impl DeserializeErrorpub fn field(&self) -> Option<u64>[src]
pub fn field(&self) -> Option<u64>Return the field index (starting at 0) of this error, if available.
pub fn kind(&self) -> &DeserializeErrorKind[src]
pub fn kind(&self) -> &DeserializeErrorKindReturn the underlying error kind.
Trait Implementations
impl Clone for DeserializeError[src]
impl Clone for DeserializeErrorfn clone(&self) -> DeserializeError[src]
fn clone(&self) -> DeserializeErrorReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for DeserializeError[src]
impl Debug for DeserializeErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for DeserializeError[src]
impl Eq for DeserializeErrorimpl PartialEq for DeserializeError[src]
impl PartialEq for DeserializeErrorfn eq(&self, other: &DeserializeError) -> bool[src]
fn eq(&self, other: &DeserializeError) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &DeserializeError) -> bool[src]
fn ne(&self, other: &DeserializeError) -> boolThis method tests for !=.
impl SerdeError for DeserializeError[src]
impl SerdeError for DeserializeErrorfn custom<T: Display>(msg: T) -> DeserializeError[src]
fn custom<T: Display>(msg: T) -> DeserializeErrorRaised when there is general error when deserializing a type. Read more
fn invalid_type(unexp: Unexpected, exp: &Expected) -> Self[src]
fn invalid_type(unexp: Unexpected, exp: &Expected) -> SelfRaised when a Deserialize receives a type different from what it was expecting. Read more
fn invalid_value(unexp: Unexpected, exp: &Expected) -> Self[src]
fn invalid_value(unexp: Unexpected, exp: &Expected) -> SelfRaised when a Deserialize receives a value of the right type but that is wrong for some other reason. Read more
fn invalid_length(len: usize, exp: &Expected) -> Self[src]
fn invalid_length(len: usize, exp: &Expected) -> SelfRaised when deserializing a sequence or map and the input data contains too many or too few elements. Read more
fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self[src]
fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> SelfRaised when a Deserialize enum type received a variant with an unrecognized name. Read more
fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self[src]
fn unknown_field(field: &str, expected: &'static [&'static str]) -> SelfRaised when a Deserialize struct type received a field with an unrecognized name. Read more
fn missing_field(field: &'static str) -> Self[src]
fn missing_field(field: &'static str) -> SelfRaised when a Deserialize struct type expected to receive a required field with a particular name but that field was not present in the input. Read more
fn duplicate_field(field: &'static str) -> Self[src]
fn duplicate_field(field: &'static str) -> SelfRaised when a Deserialize struct type received more than one of the same field. Read more
impl StdError for DeserializeError[src]
impl StdError for DeserializeErrorfn description(&self) -> &str[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>1.0.0[src]
fn cause(&self) -> Option<&Error>The lower-level cause of this error, if any. Read more
impl Display for DeserializeError[src]
impl Display for DeserializeErrorAuto Trait Implementations
impl Send for DeserializeError
impl Send for DeserializeErrorimpl Sync for DeserializeError
impl Sync for DeserializeError