Function tozny_auth::question::from_json
[-] [+]
[src]
pub fn from_json<T: Decodable>(js: &Json) -> Result<T, DecoderError>
Gets a value of a Decodable
type out of a Json
value.
pub fn from_json<T: Decodable>(js: &Json) -> Result<T, DecoderError>
Gets a value of a Decodable
type out of a Json
value.
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).