serde::de

Struct StringVisitor

source
pub struct StringVisitor;

Trait Implementations§

source§

impl Visitor for StringVisitor

source§

type Value = String

source§

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

source§

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

source§

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

source§

fn visit_bool(self, value: bool) -> 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_u128(self, value: u128) -> 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_i128(self, value: i128) -> Result<Self::Value, Error>

source§

fn visit_f32(self, value: f32) -> 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_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>

Auto Trait Implementations§

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.