GetInner

Trait GetInner 

Source
pub trait GetInner {
Show 17 methods // Required methods fn get_key(&self) -> String; fn get_wrapper(&self) -> Option<&Self>; fn get_string(&self) -> Option<String>; fn get_char(&self) -> Option<char>; fn get_u8(&self) -> Option<u8>; fn get_u16(&self) -> Option<u16>; fn get_u32(&self) -> Option<u32>; fn get_u64(&self) -> Option<u64>; fn get_u128(&self) -> Option<u128>; fn get_i8(&self) -> Option<i8>; fn get_i16(&self) -> Option<i16>; fn get_i32(&self) -> Option<i32>; fn get_i64(&self) -> Option<i64>; fn get_i128(&self) -> Option<i128>; fn get_bool(&self) -> Option<bool>; fn get_f32(&self) -> Option<f32>; fn get_f64(&self) -> Option<f64>;
}

Required Methods§

Source

fn get_key(&self) -> String

Get the key associated with this Field

Source

fn get_wrapper(&self) -> Option<&Self>

  • Get the wrapper (Field) Deserializable value of this field
  • Use if you need custom deserialization
Source

fn get_string(&self) -> Option<String>

  • Get the parsed String of this Field
  • Returns None if field could not be parsed to String
Source

fn get_char(&self) -> Option<char>

  • Get the parsed char of this Field
  • Returns None if field could not be parsed to char
Source

fn get_u8(&self) -> Option<u8>

  • Get the parsed u8 of this Field
  • Returns None if field could not be parsed to u8
Source

fn get_u16(&self) -> Option<u16>

  • Get the parsed u16 of this Field
  • Returns None if field could not be parsed to u16
Source

fn get_u32(&self) -> Option<u32>

  • Get the parsed u32 of this Field
  • Returns None if field could not be parsed to u32
Source

fn get_u64(&self) -> Option<u64>

  • Get the parsed u64 of this Field
  • Returns None if field could not be parsed to u64
Source

fn get_u128(&self) -> Option<u128>

  • Get the parsed u128 of this Field
  • Returns None if field could not be parsed to u128
Source

fn get_i8(&self) -> Option<i8>

  • Get the parsed i8 of this Field
  • Returns None if field could not be parsed to i8
Source

fn get_i16(&self) -> Option<i16>

  • Get the parsed i16 of this Field
  • Returns None if field could not be parsed to i16
Source

fn get_i32(&self) -> Option<i32>

  • Get the parsed i32 of this Field
  • Returns None if field could not be parsed to i32
Source

fn get_i64(&self) -> Option<i64>

  • Get the parsed i64 of this Field
  • Returns None if field could not be parsed to i64
Source

fn get_i128(&self) -> Option<i128>

  • Get the parsed i128 of this Field
  • Returns None if field could not be parsed to i128
Source

fn get_bool(&self) -> Option<bool>

  • Get the parsed bool of this Field
  • Returns None if field could not be parsed to bool
Source

fn get_f32(&self) -> Option<f32>

  • Get the parsed f32 of this Field
  • Returns None if field could not be parsed to f32
Source

fn get_f64(&self) -> Option<f64>

  • Get the parsed f64 of this Field
  • Returns None if field could not be parsed to f64

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§