Struct inth_oauth2::client::response::JsonObjectHelper
[−]
[src]
pub struct JsonObjectHelper<'a>(pub &'a Object);
JSON object helper for response parsing.
Methods
impl<'a> JsonObjectHelper<'a>
[src]
fn get_string_option(&self, key: &'static str) -> Option<&'a str>
Gets a field as a string or returns None
.
fn get_string(&self, key: &'static str) -> Result<&'a str, ParseError>
Gets a field as a string or fails with ParseError::ExpectedFieldType
.
fn get_i64_option(&self, key: &'static str) -> Option<i64>
Gets a field as an i64 or returns None
.
fn get_i64(&self, key: &'static str) -> Result<i64, ParseError>
Gets a field as an i64 or fails with ParseError::ExpectedFieldType
.
Trait Implementations
impl<'a> Debug for JsonObjectHelper<'a>
[src]
impl<'a> Clone for JsonObjectHelper<'a>
[src]
fn clone(&self) -> JsonObjectHelper<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a> Copy for JsonObjectHelper<'a>
[src]
impl<'a> PartialEq for JsonObjectHelper<'a>
[src]
fn eq(&self, __arg_0: &JsonObjectHelper<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &JsonObjectHelper<'a>) -> bool
This method tests for !=
.