serde::ignore

Struct Ignore

source
pub struct Ignore;
Expand description

Allow to ignore any value for deserialization.

Trait Implementations§

source§

impl Deserialize for Ignore

source§

fn deserialize<D: Deserializer>(deserializer: D) -> Result<Self, Error>

source§

impl Visitor for Ignore

source§

type Value = Ignore

source§

fn expected(&self) -> &'static str

source§

fn visit_unit(self) -> Result<Self::Value, Error>

source§

fn visit_bool(self, _value: bool) -> Result<Self::Value, Error>

source§

fn visit_u128(self, _value: u128) -> Result<Self::Value, Error>

source§

fn visit_i128(self, _value: i128) -> Result<Self::Value, Error>

source§

fn visit_f64(self, _value: f64) -> Result<Self::Value, Error>

source§

fn visit_char(self, _value: char) -> Result<Self::Value, Error>

source§

fn visit_string(self, _value: String) -> Result<Self::Value, Error>

source§

fn visit_none(self) -> Result<Self::Value, Error>

source§

fn visit_some<D: Deserializer>( self, deserializer: D, ) -> Result<Self::Value, Error>

source§

fn visit_seq<Seq: SeqAccess>(self, _seq: Seq) -> Result<Self::Value, Error>

source§

fn visit_bytes_buf(self, _bytes: Vec<u8>) -> Result<Self::Value, Error>

source§

fn visit_map<Map: MapAccess>(self, _map: Map) -> Result<Self::Value, Error>

source§

fn visit_bytes_seq<B: BytesAccess>( self, _bytes: B, ) -> Result<Self::Value, Error>

source§

fn visit_u8(self, value: u8) -> Result<Self::Value, Error>

source§

fn visit_u16(self, value: u16) -> Result<Self::Value, Error>

source§

fn visit_u32(self, value: u32) -> Result<Self::Value, Error>

source§

fn visit_u64(self, value: u64) -> Result<Self::Value, Error>

source§

fn visit_i8(self, value: i8) -> Result<Self::Value, Error>

source§

fn visit_i16(self, value: i16) -> Result<Self::Value, Error>

source§

fn visit_i32(self, value: i32) -> Result<Self::Value, Error>

source§

fn visit_i64(self, value: i64) -> Result<Self::Value, Error>

source§

fn visit_f32(self, value: f32) -> Result<Self::Value, Error>

Auto Trait Implementations§

§

impl Freeze for Ignore

§

impl RefUnwindSafe for Ignore

§

impl Send for Ignore

§

impl Sync for Ignore

§

impl Unpin for Ignore

§

impl UnwindSafe for Ignore

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Expected for T
where T: Visitor + ?Sized,

source§

fn expected(&self) -> &'static str

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.