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§
Sourcefn get_wrapper(&self) -> Option<&Self>
fn get_wrapper(&self) -> Option<&Self>
- Get the wrapper (Field) Deserializable value of this field
- Use if you need custom deserialization
Sourcefn get_string(&self) -> Option<String>
fn get_string(&self) -> Option<String>
- Get the parsed
Stringof thisField - Returns
Noneif field could not be parsed to String
Sourcefn get_char(&self) -> Option<char>
fn get_char(&self) -> Option<char>
- Get the parsed
charof thisField - Returns
Noneif field could not be parsed tochar
Sourcefn get_u8(&self) -> Option<u8>
fn get_u8(&self) -> Option<u8>
- Get the parsed
u8of thisField - Returns
Noneif field could not be parsed tou8
Sourcefn get_u16(&self) -> Option<u16>
fn get_u16(&self) -> Option<u16>
- Get the parsed
u16of thisField - Returns
Noneif field could not be parsed tou16
Sourcefn get_u32(&self) -> Option<u32>
fn get_u32(&self) -> Option<u32>
- Get the parsed
u32of thisField - Returns
Noneif field could not be parsed tou32
Sourcefn get_u64(&self) -> Option<u64>
fn get_u64(&self) -> Option<u64>
- Get the parsed
u64of thisField - Returns
Noneif field could not be parsed tou64
Sourcefn get_u128(&self) -> Option<u128>
fn get_u128(&self) -> Option<u128>
- Get the parsed
u128of thisField - Returns
Noneif field could not be parsed tou128
Sourcefn get_i8(&self) -> Option<i8>
fn get_i8(&self) -> Option<i8>
- Get the parsed
i8of thisField - Returns
Noneif field could not be parsed toi8
Sourcefn get_i16(&self) -> Option<i16>
fn get_i16(&self) -> Option<i16>
- Get the parsed
i16of thisField - Returns
Noneif field could not be parsed toi16
Sourcefn get_i32(&self) -> Option<i32>
fn get_i32(&self) -> Option<i32>
- Get the parsed
i32of thisField - Returns
Noneif field could not be parsed toi32
Sourcefn get_i64(&self) -> Option<i64>
fn get_i64(&self) -> Option<i64>
- Get the parsed
i64of thisField - Returns
Noneif field could not be parsed toi64
Sourcefn get_i128(&self) -> Option<i128>
fn get_i128(&self) -> Option<i128>
- Get the parsed
i128of thisField - Returns
Noneif field could not be parsed toi128
Sourcefn get_bool(&self) -> Option<bool>
fn get_bool(&self) -> Option<bool>
- Get the parsed
boolof thisField - Returns
Noneif field could not be parsed tobool
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.