var searchIndex = {}; searchIndex["json_rpc"] = {"doc":"# json rpc","items":[[0,"base64","json_rpc::serialize","Base64 binary-to-text encoding",null,null],[4,"CharacterSet","json_rpc::serialize::base64","Available encoding character sets",null,null],[13,"Standard","","The standard character set (uses `+` and `/`)",0,null],[13,"UrlSafe","","The URL safe character set (uses `-` and `_`)",0,null],[4,"Newline","","Available newline types",null,null],[13,"LF","","A linefeed (i.e. Unix-style newline)",1,null],[13,"CRLF","","A carriage return and a linefeed (i.e. Windows-style newline)",1,null],[3,"Config","","Contains configuration parameters for `to_base64`.",null,null],[12,"char_set","","Character set to use",2,null],[12,"newline","","Newline to use",2,null],[12,"pad","","True to pad output with `=` characters",2,null],[12,"line_length","","`Some(len)` to wrap lines at `len`, `None` to disable line wrapping",2,null],[7,"STANDARD","","Configuration for RFC 4648 standard base64 encoding",null,null],[7,"URL_SAFE","","Configuration for RFC 4648 base64url encoding",null,null],[7,"MIME","","Configuration for RFC 2045 MIME base64 encoding",null,null],[8,"ToBase64","","A trait for converting a value to base64 encoding.",null,null],[10,"to_base64","","Converts the value of `self` to a base64 value following the specified\nformat configuration, returning the owned string.",3,null],[8,"FromBase64","","A trait for converting from base64 encoded values.",null,null],[10,"from_base64","","Converts the value of `self`, interpreted as base64 encoded data, into\nan owned vector of bytes, returning the vector.",4,null],[4,"FromBase64Error","","Errors that can occur when decoding a base64 encoded string",null,null],[13,"InvalidBase64Byte","","The input contained a character not part of the base64 format",5,null],[13,"InvalidBase64Length","","The input had an invalid length",5,null],[0,"hex","json_rpc::serialize","Hex binary-to-text encoding",null,null],[8,"ToHex","json_rpc::serialize::hex","A trait for converting a value to hexadecimal encoding",null,null],[10,"to_hex","","Converts the value of `self` to a hex value, returning the owned\nstring.",6,null],[8,"FromHex","","A trait for converting hexadecimal encoded values",null,null],[10,"from_hex","","Converts the value of `self`, interpreted as hexadecimal encoded data,\ninto an owned vector of bytes, returning the vector.",7,null],[4,"FromHexError","","Errors that can occur when decoding a hex encoded string",null,null],[13,"InvalidHexCharacter","","The input contained a character not part of the hex format",8,null],[13,"InvalidHexLength","","The input had an invalid length",8,null],[0,"json","json_rpc::serialize","JSON parsing and serialization",null,null],[4,"Json","json_rpc::serialize::json","Represents a json value",null,null],[13,"I64","","",9,null],[13,"U64","","",9,null],[13,"F64","","",9,null],[13,"String","","",9,null],[13,"Boolean","","",9,null],[13,"Array","","",9,null],[13,"Object","","",9,null],[13,"Null","","",9,null],[6,"Array","","",null,null],[6,"Object","","",null,null],[3,"PrettyJson","","",null,null],[3,"AsJson","","",null,null],[3,"AsPrettyJson","","",null,null],[4,"ErrorCode","","The errors that can arise while parsing a JSON stream.",null,null],[13,"InvalidSyntax","","",10,null],[13,"InvalidNumber","","",10,null],[13,"EOFWhileParsingObject","","",10,null],[13,"EOFWhileParsingArray","","",10,null],[13,"EOFWhileParsingValue","","",10,null],[13,"EOFWhileParsingString","","",10,null],[13,"KeyMustBeAString","","",10,null],[13,"ExpectedColon","","",10,null],[13,"TrailingCharacters","","",10,null],[13,"TrailingComma","","",10,null],[13,"InvalidEscape","","",10,null],[13,"InvalidUnicodeCodePoint","","",10,null],[13,"LoneLeadingSurrogateInHexEscape","","",10,null],[13,"UnexpectedEndOfHexEscape","","",10,null],[13,"UnrecognizedHex","","",10,null],[13,"NotFourDigit","","",10,null],[13,"ControlCharacterInString","","",10,null],[13,"NotUtf8","","",10,null],[4,"ParserError","","",null,null],[13,"SyntaxError","","msg, line, col",11,null],[13,"IoError","","",11,null],[6,"BuilderError","","",null,null],[4,"DecoderError","","",null,null],[13,"ParseError","","",12,null],[13,"ExpectedError","","",12,null],[13,"MissingFieldError","","",12,null],[13,"UnknownVariantError","","",12,null],[13,"ApplicationError","","",12,null],[13,"EOF","","",12,null],[4,"EncoderError","","",null,null],[13,"FmtError","","",13,null],[13,"BadHashmapKey","","",13,null],[5,"error_str","","Returns a readable error string for a given error code.",null,{"inputs":[{"name":"errorcode"}],"output":{"name":"str"}}],[5,"decode","","Shortcut function to decode a JSON `&str` into an object",null,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[5,"encode","","Shortcut function to encode a `T` into a JSON `String`",null,{"inputs":[{"name":"t"}],"output":{"name":"result"}}],[6,"EncodeResult","","",null,null],[6,"DecodeResult","","",null,null],[3,"Encoder","","A structure for implementing serialization to JSON.",null,null],[5,"as_json","","Create an `AsJson` wrapper which can be used to print a value as JSON\non-the-fly via `write!`",null,{"inputs":[{"name":"t"}],"output":{"name":"asjson"}}],[5,"as_pretty_json","","Create an `AsPrettyJson` wrapper which can be used to print a value as JSON\non-the-fly via `write!`",null,{"inputs":[{"name":"t"}],"output":{"name":"asprettyjson"}}],[4,"JsonEvent","","The output of the streaming parser.",null,null],[13,"ObjectStart","","",14,null],[13,"ObjectEnd","","",14,null],[13,"ArrayStart","","",14,null],[13,"ArrayEnd","","",14,null],[13,"BooleanValue","","",14,null],[13,"I64Value","","",14,null],[13,"U64Value","","",14,null],[13,"F64Value","","",14,null],[13,"StringValue","","",14,null],[13,"NullValue","","",14,null],[13,"Error","","",14,null],[3,"Stack","","A Stack represents the current position of the parser in the logical\nstructure of the JSON stream.\nFor example foo.bar[3].x",null,null],[4,"StackElement","","StackElements compose a Stack.\nFor example, Key("foo"), Key("bar"), Index(3) and Key("x") are the\nStackElements compositing the stack that represents foo.bar[3].x",null,null],[13,"Index","","",15,null],[13,"Key","","",15,null],[3,"Parser","","A streaming JSON parser implemented as an iterator of JsonEvent, consuming\nan iterator of char.",null,null],[3,"Builder","","A Builder consumes a json::Parser to create a generic Json structure.",null,null],[3,"Decoder","","A structure to decode JSON to values in rust.",null,null],[8,"ToJson","","A trait for converting values to JSON",null,null],[10,"to_json","","Converts the value of `self` to an instance of JSON",16,null],[8,"Decodable","json_rpc::serialize","",null,null],[10,"decode","","",17,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[8,"EncoderHelpers","","",null,null],[10,"emit_from_vec","","",18,null],[8,"DecoderHelpers","","",null,null],[10,"read_to_vec","","",19,null],[8,"Encodable","","",null,null],[10,"encode","","",20,null],[8,"Encoder","","",null,null],[16,"Error","","",21,null],[10,"emit_nil","","",21,null],[10,"emit_usize","","",21,null],[10,"emit_u64","","",21,null],[10,"emit_u32","","",21,null],[10,"emit_u16","","",21,null],[10,"emit_u8","","",21,null],[10,"emit_isize","","",21,null],[10,"emit_i64","","",21,null],[10,"emit_i32","","",21,null],[10,"emit_i16","","",21,null],[10,"emit_i8","","",21,null],[10,"emit_bool","","",21,null],[10,"emit_f64","","",21,null],[10,"emit_f32","","",21,null],[10,"emit_char","","",21,null],[10,"emit_str","","",21,null],[10,"emit_enum","","",21,null],[10,"emit_enum_variant","","",21,null],[10,"emit_enum_variant_arg","","",21,null],[10,"emit_enum_struct_variant","","",21,null],[10,"emit_enum_struct_variant_field","","",21,null],[10,"emit_struct","","",21,null],[10,"emit_struct_field","","",21,null],[10,"emit_tuple","","",21,null],[10,"emit_tuple_arg","","",21,null],[10,"emit_tuple_struct","","",21,null],[10,"emit_tuple_struct_arg","","",21,null],[10,"emit_option","","",21,null],[10,"emit_option_none","","",21,null],[10,"emit_option_some","","",21,null],[10,"emit_seq","","",21,null],[10,"emit_seq_elt","","",21,null],[10,"emit_map","","",21,null],[10,"emit_map_elt_key","","",21,null],[10,"emit_map_elt_val","","",21,null],[8,"Decoder","","",null,null],[16,"Error","","",22,null],[10,"read_nil","","",22,null],[10,"read_usize","","",22,null],[10,"read_u64","","",22,null],[10,"read_u32","","",22,null],[10,"read_u16","","",22,null],[10,"read_u8","","",22,null],[10,"read_isize","","",22,null],[10,"read_i64","","",22,null],[10,"read_i32","","",22,null],[10,"read_i16","","",22,null],[10,"read_i8","","",22,null],[10,"read_bool","","",22,null],[10,"read_f64","","",22,null],[10,"read_f32","","",22,null],[10,"read_char","","",22,null],[10,"read_str","","",22,null],[10,"read_enum","","",22,null],[10,"read_enum_variant","","",22,null],[10,"read_enum_variant_arg","","",22,null],[10,"read_enum_struct_variant","","",22,null],[10,"read_enum_struct_variant_field","","",22,null],[10,"read_struct","","",22,null],[10,"read_struct_field","","",22,null],[10,"read_tuple","","",22,null],[10,"read_tuple_arg","","",22,null],[10,"read_tuple_struct","","",22,null],[10,"read_tuple_struct_arg","","",22,null],[10,"read_option","","",22,null],[10,"read_seq","","",22,null],[10,"read_seq_elt","","",22,null],[10,"read_map","","",22,null],[10,"read_map_elt_key","","",22,null],[10,"read_map_elt_val","","",22,null],[10,"error","","",22,null],[4,"Json","json_rpc","Represents a json value",null,null],[13,"I64","","",9,null],[13,"U64","","",9,null],[13,"F64","","",9,null],[13,"String","","",9,null],[13,"Boolean","","",9,null],[13,"Array","","",9,null],[13,"Object","","",9,null],[13,"Null","","",9,null],[3,"Error","","",null,null],[3,"Server","","",null,null],[11,"custom","","",23,{"inputs":[{"name":"i64"},{"name":"str"},{"name":"option"}],"output":{"name":"error"}}],[11,"predefined","","",23,{"inputs":[{"name":"i64"},{"name":"option"}],"output":{"name":"error"}}],[11,"new","","",24,{"inputs":[],"output":{"name":"server"}}],[11,"register_method","","",24,null],[11,"request","","",24,null],[14,"rpc_method!","","",null,null],[14,"rpc_method_no_params!","","",null,null],[14,"rpc_params!","","",null,null],[11,"fmt","json_rpc::serialize::base64","",0,null],[11,"clone","","",0,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"clone","","",5,null],[11,"fmt","","",5,null],[11,"description","","",5,null],[11,"fmt","","",5,null],[11,"clone","json_rpc::serialize::hex","",8,null],[11,"fmt","","",8,null],[11,"description","","",8,null],[11,"fmt","","",8,null],[11,"fmt","json_rpc","",9,null],[11,"partial_cmp","","",9,null],[11,"lt","","",9,null],[11,"le","","",9,null],[11,"gt","","",9,null],[11,"ge","","",9,null],[11,"eq","","",9,null],[11,"ne","","",9,null],[11,"clone","","",9,null],[11,"eq","json_rpc::serialize::json","",10,null],[11,"clone","","",10,null],[11,"fmt","","",11,null],[11,"eq","","",11,null],[11,"fmt","","",12,null],[11,"eq","","",12,null],[11,"ne","","",12,null],[11,"fmt","","",13,null],[11,"clone","","",13,null],[11,"fmt","","",10,null],[11,"description","","",12,null],[11,"cause","","",12,null],[11,"fmt","","",12,null],[11,"from","","",12,{"inputs":[{"name":"parsererror"}],"output":{"name":"decodererror"}}],[11,"description","","",11,null],[11,"fmt","","",11,null],[11,"from","","",11,{"inputs":[{"name":"error"}],"output":{"name":"parsererror"}}],[11,"description","","",13,null],[11,"fmt","","",13,null],[11,"from","","",13,{"inputs":[{"name":"error"}],"output":{"name":"encodererror"}}],[11,"new_pretty","","Creates a new encoder whose output will be written in human-readable\nJSON to the specified writer",25,{"inputs":[{"name":"write"}],"output":{"name":"encoder"}}],[11,"new","","Creates a new encoder whose output will be written in compact\nJSON to the specified writer",25,{"inputs":[{"name":"write"}],"output":{"name":"encoder"}}],[11,"set_indent","","Set the number of spaces to indent for each level.\nThis is safe to set during encoding.",25,null],[11,"emit_nil","","",25,null],[11,"emit_usize","","",25,null],[11,"emit_u64","","",25,null],[11,"emit_u32","","",25,null],[11,"emit_u16","","",25,null],[11,"emit_u8","","",25,null],[11,"emit_isize","","",25,null],[11,"emit_i64","","",25,null],[11,"emit_i32","","",25,null],[11,"emit_i16","","",25,null],[11,"emit_i8","","",25,null],[11,"emit_bool","","",25,null],[11,"emit_f64","","",25,null],[11,"emit_f32","","",25,null],[11,"emit_char","","",25,null],[11,"emit_str","","",25,null],[11,"emit_enum","","",25,null],[11,"emit_enum_variant","","",25,null],[11,"emit_enum_variant_arg","","",25,null],[11,"emit_enum_struct_variant","","",25,null],[11,"emit_enum_struct_variant_field","","",25,null],[11,"emit_struct","","",25,null],[11,"emit_struct_field","","",25,null],[11,"emit_tuple","","",25,null],[11,"emit_tuple_arg","","",25,null],[11,"emit_tuple_struct","","",25,null],[11,"emit_tuple_struct_arg","","",25,null],[11,"emit_option","","",25,null],[11,"emit_option_none","","",25,null],[11,"emit_option_some","","",25,null],[11,"emit_seq","","",25,null],[11,"emit_seq_elt","","",25,null],[11,"emit_map","","",25,null],[11,"emit_map_elt_key","","",25,null],[11,"emit_map_elt_val","","",25,null],[11,"encode","json_rpc","",9,null],[11,"from_reader","","Decodes a json value from an `&mut io::Read`",9,{"inputs":[{"name":"read"}],"output":{"name":"result"}}],[11,"from_str","","Decodes a json value from a string",9,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"pretty","","Borrow this json object as a pretty object to generate a pretty\nrepresentation for it via `Display`.",9,null],[11,"find","","If the Json value is an Object, returns the value associated with the provided key.\nOtherwise, returns None.",9,null],[11,"find_path","","Attempts to get a nested Json Object for each key in `keys`.\nIf any key is found not to exist, find_path will return None.\nOtherwise, it will return the Json value associated with the final key.",9,null],[11,"search","","If the Json value is an Object, performs a depth-first search until\na value associated with the provided key is found. If no value is found\nor the Json value is not an Object, returns None.",9,null],[11,"is_object","","Returns true if the Json value is an Object. Returns false otherwise.",9,null],[11,"as_object","","If the Json value is an Object, returns the associated BTreeMap.\nReturns None otherwise.",9,null],[11,"as_object_mut","","If the Json value is an Object, returns the associated mutable BTreeMap.\nReturns None otherwise.",9,null],[11,"is_array","","Returns true if the Json value is an Array. Returns false otherwise.",9,null],[11,"as_array","","If the Json value is an Array, returns the associated vector.\nReturns None otherwise.",9,null],[11,"as_array_mut","","If the Json value is an Array, returns the associated mutable vector.\nReturns None otherwise.",9,null],[11,"is_string","","Returns true if the Json value is a String. Returns false otherwise.",9,null],[11,"as_string","","If the Json value is a String, returns the associated str.\nReturns None otherwise.",9,null],[11,"is_number","","Returns true if the Json value is a Number. Returns false otherwise.",9,null],[11,"is_i64","","Returns true if the Json value is a i64. Returns false otherwise.",9,null],[11,"is_u64","","Returns true if the Json value is a u64. Returns false otherwise.",9,null],[11,"is_f64","","Returns true if the Json value is a f64. Returns false otherwise.",9,null],[11,"as_i64","","If the Json value is a number, return or cast it to a i64.\nReturns None otherwise.",9,null],[11,"as_u64","","If the Json value is a number, return or cast it to a u64.\nReturns None otherwise.",9,null],[11,"as_f64","","If the Json value is a number, return or cast it to a f64.\nReturns None otherwise.",9,null],[11,"is_boolean","","Returns true if the Json value is a Boolean. Returns false otherwise.",9,null],[11,"as_boolean","","If the Json value is a Boolean, returns the associated bool.\nReturns None otherwise.",9,null],[11,"is_null","","Returns true if the Json value is a Null. Returns false otherwise.",9,null],[11,"as_null","","If the Json value is a Null, returns ().\nReturns None otherwise.",9,null],[11,"index","","",9,null],[11,"index","","",9,null],[11,"fmt","json_rpc::serialize::json","",14,null],[11,"eq","","",14,null],[11,"ne","","",14,null],[11,"fmt","","",15,null],[11,"clone","","",15,null],[11,"eq","","",15,null],[11,"ne","","",15,null],[11,"new","","",26,{"inputs":[],"output":{"name":"stack"}}],[11,"len","","Returns The number of elements in the Stack.",26,null],[11,"is_empty","","Returns true if the stack is empty.",26,null],[11,"get","","Provides access to the StackElement at a given index.\nlower indices are at the bottom of the stack while higher indices are\nat the top.",26,null],[11,"is_equal_to","","Compares this stack with an array of StackElements.",26,null],[11,"starts_with","","Returns true if the bottom-most elements of this stack are the same as\nthe ones passed as parameter.",26,null],[11,"ends_with","","Returns true if the top-most elements of this stack are the same as\nthe ones passed as parameter.",26,null],[11,"top","","Returns the top-most element (if any).",26,null],[11,"next","","",27,null],[11,"new","","Creates the JSON parser.",27,{"inputs":[{"name":"t"}],"output":{"name":"parser"}}],[11,"stack","","Provides access to the current position in the logical structure of the\nJSON stream.",27,null],[11,"new","","Create a JSON Builder.",28,{"inputs":[{"name":"t"}],"output":{"name":"builder"}}],[11,"build","","",28,null],[11,"new","","Creates a new decoder instance for decoding the specified JSON value.",29,{"inputs":[{"name":"json"}],"output":{"name":"decoder"}}],[11,"read_nil","","",29,null],[11,"read_usize","","",29,null],[11,"read_u8","","",29,null],[11,"read_u16","","",29,null],[11,"read_u32","","",29,null],[11,"read_u64","","",29,null],[11,"read_isize","","",29,null],[11,"read_i8","","",29,null],[11,"read_i16","","",29,null],[11,"read_i32","","",29,null],[11,"read_i64","","",29,null],[11,"read_f32","","",29,null],[11,"read_f64","","",29,null],[11,"read_bool","","",29,null],[11,"read_char","","",29,null],[11,"read_str","","",29,null],[11,"read_enum","","",29,null],[11,"read_enum_variant","","",29,null],[11,"read_enum_variant_arg","","",29,null],[11,"read_enum_struct_variant","","",29,null],[11,"read_enum_struct_variant_field","","",29,null],[11,"read_struct","","",29,null],[11,"read_struct_field","","",29,null],[11,"read_tuple","","",29,null],[11,"read_tuple_arg","","",29,null],[11,"read_tuple_struct","","",29,null],[11,"read_tuple_struct_arg","","",29,null],[11,"read_option","","",29,null],[11,"read_seq","","",29,null],[11,"read_seq_elt","","",29,null],[11,"read_map","","",29,null],[11,"read_map_elt_key","","",29,null],[11,"read_map_elt_val","","",29,null],[11,"error","","",29,null],[11,"to_json","json_rpc","",9,null],[11,"fmt","","Encodes a json value into a string",9,null],[11,"fmt","json_rpc::serialize::json","Encodes a json value into a string",30,null],[11,"fmt","","Encodes a json value into a string",31,null],[11,"indent","","Set the indentation level for the emitted JSON",32,null],[11,"fmt","","Encodes a json value into a string",32,null],[11,"from_str","json_rpc","",9,{"inputs":[{"name":"str"}],"output":{"name":"result"}}]],"paths":[[4,"CharacterSet"],[4,"Newline"],[3,"Config"],[8,"ToBase64"],[8,"FromBase64"],[4,"FromBase64Error"],[8,"ToHex"],[8,"FromHex"],[4,"FromHexError"],[4,"Json"],[4,"ErrorCode"],[4,"ParserError"],[4,"DecoderError"],[4,"EncoderError"],[4,"JsonEvent"],[4,"StackElement"],[8,"ToJson"],[8,"Decodable"],[8,"EncoderHelpers"],[8,"DecoderHelpers"],[8,"Encodable"],[8,"Encoder"],[8,"Decoder"],[3,"Error"],[3,"Server"],[3,"Encoder"],[3,"Stack"],[3,"Parser"],[3,"Builder"],[3,"Decoder"],[3,"PrettyJson"],[3,"AsJson"],[3,"AsPrettyJson"]]}; initSearch(searchIndex);