var searchIndex = {}; searchIndex["bson"] = {"doc":"BSON is a binary format in which zero or more key/value pairs are stored as a single entity.\nWe call this entity a document.","items":[[3,"Encoder","bson","",null,null],[3,"Decoder","","",null,null],[4,"Bson","","Possible BSON value types.",null,null],[13,"FloatingPoint","","",0,null],[13,"String","","",0,null],[13,"Array","","",0,null],[13,"Document","","",0,null],[13,"Boolean","","",0,null],[13,"Null","","",0,null],[13,"RegExp","","",0,null],[13,"JavaScriptCode","","",0,null],[13,"JavaScriptCodeWithScope","","",0,null],[13,"I32","","",0,null],[13,"I64","","",0,null],[13,"TimeStamp","","",0,null],[13,"Binary","","",0,null],[13,"ObjectId","","",0,null],[13,"UtcDatetime","","",0,null],[4,"EncoderError","","Possible errors that can arise during encoding.",null,null],[13,"IoError","","",1,null],[13,"InvalidMapKeyType","","",1,null],[13,"InvalidState","","",1,null],[13,"EmptyState","","",1,null],[13,"Unknown","","",1,null],[4,"DecoderError","","Possible errors that can arise during decoding.",null,null],[13,"IoError","","",2,null],[13,"Utf8Error","","",2,null],[13,"UnrecognizedElementType","","",2,null],[13,"InvalidArrayKey","","",2,null],[13,"ExpectedField","","",2,null],[13,"UnknownField","","",2,null],[13,"SyntaxError","","",2,null],[13,"EndOfStream","","",2,null],[13,"Unknown","","",2,null],[5,"encode_document","","Attempt to encode a `Document` into a byte stream.",null,{"inputs":[{"name":"w"},{"name":"d"}],"output":{"name":"encoderresult"}}],[5,"to_bson","","Encode a `T` Serializable into a BSON `Value`.",null,{"inputs":[{"name":"t"}],"output":{"name":"encoderresult"}}],[5,"decode_document","","Attempt to decode a `Document` from a byte stream.",null,{"inputs":[{"name":"r"}],"output":{"name":"decoderresult"}}],[5,"from_bson","","Decode a BSON `Value` into a `T` Deserializable.",null,{"inputs":[{"name":"bson"}],"output":{"name":"decoderresult"}}],[0,"oid","","",null,null],[3,"ObjectId","bson::oid","A wrapper around raw 12-byte ObjectId representations.",null,null],[4,"Error","","Errors that can occur during OID construction and generation.",null,null],[13,"ArgumentError","","",3,null],[13,"FromHexError","","",3,null],[13,"IoError","","",3,null],[13,"HostnameError","","",3,null],[6,"Result","","Alias for Result<T, oid::Error>.",null,null],[11,"fmt","","",3,null],[11,"from","","",3,{"inputs":[{"name":"fromhexerror"}],"output":{"name":"error"}}],[11,"from","","",3,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"fmt","","",3,null],[11,"description","","",3,null],[11,"cause","","",3,null],[11,"cmp","","",4,null],[11,"partial_cmp","","",4,null],[11,"lt","","",4,null],[11,"le","","",4,null],[11,"gt","","",4,null],[11,"ge","","",4,null],[11,"eq","","",4,null],[11,"ne","","",4,null],[11,"clone","","",4,null],[11,"fmt","","",4,null],[11,"new","","Generates a new ObjectID, represented in bytes.\nSee the [docs](http://docs.mongodb.org/manual/reference/object-id/)\nfor more information.",4,{"inputs":[],"output":{"name":"result"}}],[11,"with_bytes","","Constructs a new ObjectId wrapper around the raw byte representation.",4,null],[11,"with_string","","Creates an ObjectID using a 12-byte (24-char) hexadecimal string.",4,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"with_timestamp","","Creates a dummy ObjectId with a specific generation time.\nThis method should only be used to do range queries on a field\ncontaining ObjectId instances.",4,{"inputs":[{"name":"u32"}],"output":{"name":"objectid"}}],[11,"bytes","","Returns the raw byte representation of an ObjectId.",4,null],[11,"timestamp","","Retrieves the timestamp (seconds since epoch) from an ObjectId.",4,null],[11,"machine_id","","Retrieves the machine id associated with an ObjectId.",4,null],[11,"process_id","","Retrieves the process id associated with an ObjectId.",4,null],[11,"counter","","Retrieves the increment counter from an ObjectId.",4,null],[11,"to_hex","","",4,null],[11,"fmt","","",4,null],[11,"decode","","",4,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"encode","","",4,null],[0,"spec","bson","Constants derived from the [BSON Specification Version 1.0](http://bsonspec.org/spec.html).",null,null],[4,"ElementType","bson::spec","All available BSON element types.",null,null],[13,"FloatingPoint","","",5,null],[13,"Utf8String","","",5,null],[13,"EmbeddedDocument","","",5,null],[13,"Array","","",5,null],[13,"Binary","","",5,null],[13,"Undefined","","Deprecated.",5,null],[13,"ObjectId","","",5,null],[13,"Boolean","","",5,null],[13,"UtcDatetime","","",5,null],[13,"NullValue","","",5,null],[13,"RegularExpression","","",5,null],[13,"DbPointer","","Deprecated.",5,null],[13,"JavaScriptCode","","",5,null],[13,"Deprecated","","",5,null],[13,"JavaScriptCodeWithScope","","",5,null],[13,"Integer32Bit","","",5,null],[13,"TimeStamp","","",5,null],[13,"Integer64Bit","","",5,null],[13,"MaxKey","","",5,null],[13,"MinKey","","",5,null],[4,"BinarySubtype","","The available binary subtypes, plus a user-defined slot.",null,null],[13,"Generic","","",6,null],[13,"Function","","",6,null],[13,"BinaryOld","","",6,null],[13,"UuidOld","","",6,null],[13,"Uuid","","",6,null],[13,"Md5","","",6,null],[13,"UserDefined","","",6,null],[17,"ELEMENT_TYPE_FLOATING_POINT","","",null,null],[17,"ELEMENT_TYPE_UTF8_STRING","","",null,null],[17,"ELEMENT_TYPE_EMBEDDED_DOCUMENT","","",null,null],[17,"ELEMENT_TYPE_ARRAY","","",null,null],[17,"ELEMENT_TYPE_BINARY","","",null,null],[17,"ELEMENT_TYPE_UNDEFINED","","",null,null],[17,"ELEMENT_TYPE_OBJECT_ID","","",null,null],[17,"ELEMENT_TYPE_BOOLEAN","","",null,null],[17,"ELEMENT_TYPE_UTC_DATETIME","","",null,null],[17,"ELEMENT_TYPE_NULL_VALUE","","",null,null],[17,"ELEMENT_TYPE_REGULAR_EXPRESSION","","",null,null],[17,"ELEMENT_TYPE_DBPOINTER","","",null,null],[17,"ELEMENT_TYPE_JAVASCRIPT_CODE","","",null,null],[17,"ELEMENT_TYPE_DEPRECATED","","",null,null],[17,"ELEMENT_TYPE_JAVASCRIPT_CODE_WITH_SCOPE","","",null,null],[17,"ELEMENT_TYPE_32BIT_INTEGER","","",null,null],[17,"ELEMENT_TYPE_TIMESTAMP","","",null,null],[17,"ELEMENT_TYPE_64BIT_INTEGER","","",null,null],[17,"ELEMENT_TYPE_MINKEY","","",null,null],[17,"ELEMENT_TYPE_MAXKEY","","",null,null],[17,"BINARY_SUBTYPE_GENERIC","","",null,null],[17,"BINARY_SUBTYPE_FUNCTION","","",null,null],[17,"BINARY_SUBTYPE_BINARY_OLD","","",null,null],[17,"BINARY_SUBTYPE_UUID_OLD","","",null,null],[17,"BINARY_SUBTYPE_UUID","","",null,null],[17,"BINARY_SUBTYPE_MD5","","",null,null],[11,"eq","","",5,null],[11,"fmt","","",5,null],[11,"from","","Attempt to convert from a `u8`.",5,{"inputs":[{"name":"u8"}],"output":{"name":"option"}}],[11,"eq","","",6,null],[11,"ne","","",6,null],[11,"fmt","","",6,null],[11,"clone","","",6,null],[11,"from","","",6,{"inputs":[{"name":"u8"}],"output":{"name":"binarysubtype"}}],[11,"eq","bson","",0,null],[11,"ne","","",0,null],[11,"clone","","",0,null],[11,"fmt","","",0,null],[11,"fmt","","",0,null],[11,"from","","",0,{"inputs":[{"name":"f32"}],"output":{"name":"bson"}}],[11,"from","","",0,{"inputs":[{"name":"f64"}],"output":{"name":"bson"}}],[11,"from","","",0,{"inputs":[{"name":"str"}],"output":{"name":"bson"}}],[11,"from","","",0,{"inputs":[{"name":"string"}],"output":{"name":"bson"}}],[11,"from","","",0,{"inputs":[{"name":"string"}],"output":{"name":"bson"}}],[11,"from","","",0,{"inputs":[{"name":"array"}],"output":{"name":"bson"}}],[11,"from","","",0,{"inputs":[{"name":"document"}],"output":{"name":"bson"}}],[11,"from","","",0,{"inputs":[{"name":"bool"}],"output":{"name":"bson"}}],[11,"from","","",0,null],[11,"from","","",0,null],[11,"from","","",0,null],[11,"from","","",0,{"inputs":[{"name":"i32"}],"output":{"name":"bson"}}],[11,"from","","",0,{"inputs":[{"name":"i64"}],"output":{"name":"bson"}}],[11,"from","","",0,{"inputs":[{"name":"u32"}],"output":{"name":"bson"}}],[11,"from","","",0,{"inputs":[{"name":"u64"}],"output":{"name":"bson"}}],[11,"from","","",0,null],[11,"from","","",0,{"inputs":[{"name":"objectid"}],"output":{"name":"bson"}}],[11,"from","","",0,{"inputs":[{"name":"datetime"}],"output":{"name":"bson"}}],[11,"element_type","","Get the `ElementType` of this value.",0,null],[11,"to_json","","Convert this value to the best approximate `Json`.",0,null],[11,"from_json","","Create a `Bson` from a `Json`.",0,{"inputs":[{"name":"json"}],"output":{"name":"bson"}}],[11,"to_extended_document","","",0,null],[11,"from_extended_document","","",0,{"inputs":[{"name":"document"}],"output":{"name":"bson"}}],[11,"fmt","","",1,null],[11,"from","","",1,{"inputs":[{"name":"error"}],"output":{"name":"encodererror"}}],[11,"from","","",1,{"inputs":[{"name":"error"}],"output":{"name":"encodererror"}}],[11,"fmt","","",1,null],[11,"description","","",1,null],[11,"cause","","",1,null],[11,"custom","","",1,{"inputs":[{"name":"t"}],"output":{"name":"encodererror"}}],[11,"serialize","bson::oid","",4,null],[11,"serialize","bson","",0,null],[11,"new","","Construct a new `Serializer`.",7,{"inputs":[],"output":{"name":"encoder"}}],[11,"bson","","Unwrap the `Serializer` and return the `Value`.",7,null],[11,"serialize_bool","","",7,null],[11,"serialize_i8","","",7,null],[11,"serialize_i16","","",7,null],[11,"serialize_i32","","",7,null],[11,"serialize_i64","","",7,null],[11,"serialize_u64","","",7,null],[11,"serialize_f64","","",7,null],[11,"serialize_char","","",7,null],[11,"serialize_str","","",7,null],[11,"serialize_none","","",7,null],[11,"serialize_some","","",7,null],[11,"serialize_unit","","",7,null],[11,"serialize_unit_variant","","",7,null],[11,"serialize_newtype_variant","","",7,null],[11,"serialize_seq","","",7,null],[11,"serialize_tuple_variant","","",7,null],[11,"serialize_seq_elt","","",7,null],[11,"serialize_map","","",7,null],[11,"serialize_struct_variant","","",7,null],[11,"serialize_map_elt","","",7,null],[11,"fmt","","",2,null],[11,"from","","",2,{"inputs":[{"name":"error"}],"output":{"name":"decodererror"}}],[11,"from","","",2,{"inputs":[{"name":"utf8error"}],"output":{"name":"decodererror"}}],[11,"from","","",2,{"inputs":[{"name":"error"}],"output":{"name":"decodererror"}}],[11,"fmt","","",2,null],[11,"description","","",2,null],[11,"cause","","",2,null],[11,"custom","","",2,{"inputs":[{"name":"t"}],"output":{"name":"decodererror"}}],[11,"invalid_value","","",2,{"inputs":[{"name":"str"}],"output":{"name":"decodererror"}}],[11,"end_of_stream","","",2,{"inputs":[],"output":{"name":"decodererror"}}],[11,"unknown_field","","",2,{"inputs":[{"name":"str"}],"output":{"name":"decodererror"}}],[11,"missing_field","","",2,{"inputs":[{"name":"str"}],"output":{"name":"decodererror"}}],[11,"deserialize","bson::oid","",4,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"deserialize","bson","",0,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"new","","",8,{"inputs":[{"name":"bson"}],"output":{"name":"decoder"}}],[11,"deserialize","","",8,null],[11,"deserialize_option","","",8,null],[11,"deserialize_enum","","",8,null],[11,"deserialize_newtype_struct","","",8,null],[0,"ordered","","",null,null],[3,"OrderedDocument","bson::ordered","A BSON document represented as an associative HashMap with insertion ordering.",null,null],[3,"OrderedDocumentIntoIterator","","An iterator over OrderedDocument entries.",null,null],[3,"OrderedDocumentIterator","","An owning iterator over OrderedDocument entries.",null,null],[3,"Keys","","An iterator over an OrderedDocument's keys.",null,null],[3,"Values","","An iterator over an OrderedDocument's values.",null,null],[3,"OrderedDocumentVisitor","","",null,null],[4,"ValueAccessError","","Error to indicate that either a value was empty or it contained an unexpected\ntype, for use with the direct getters.",null,null],[13,"NotPresent","","",9,null],[13,"UnexpectedType","","",9,null],[6,"ValueAccessResult","","",null,null],[11,"eq","","",9,null],[11,"fmt","","",9,null],[11,"fmt","","",9,null],[11,"description","","",9,null],[11,"eq","","",10,null],[11,"ne","","",10,null],[11,"clone","","",10,null],[11,"fmt","","",10,null],[11,"fmt","","",10,null],[11,"next","","",11,null],[11,"next","","",12,null],[11,"into_iter","","",10,null],[11,"from_iter","","",10,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"next","","",13,null],[11,"next","","",14,null],[11,"new","","Creates a new empty OrderedDocument.",10,{"inputs":[],"output":{"name":"ordereddocument"}}],[11,"iter","","Gets an iterator over the entries of the map.",10,null],[11,"clear","","Clears the document, removing all values.",10,null],[11,"get","","Returns a reference to the Bson corresponding to the key.",10,null],[11,"get_mut","","Gets a mutable reference to the Bson corresponding to the key",10,null],[11,"get_f64","","Get a floating point value for this key if it exists and has\nthe correct type.",10,null],[11,"get_str","","Get a string slice this key if it exists and has the correct type.",10,null],[11,"get_array","","Get a reference to an array for this key if it exists and has\nthe correct type.",10,null],[11,"get_document","","Get a reference to a document for this key if it exists and has\nthe correct type.",10,null],[11,"get_bool","","Get a bool value for this key if it exists and has the correct type.",10,null],[11,"is_null","","Returns wether this key has a null value",10,null],[11,"get_i32","","Get an i32 value for this key if it exists and has the correct type.",10,null],[11,"get_i64","","Get an i64 value for this key if it exists and has the correct type.",10,null],[11,"get_time_stamp","","Get a time stamp value for this key if it exists and has the correct type.",10,null],[11,"get_binary_generic","","Get a generic binary value for this key if it exists and has the correct type.",10,null],[11,"get_object_id","","Get an object id value for this key if it exists and has the correct type.",10,null],[11,"get_utc_datetime","","Get a UTC datetime value for this key if it exists and has the correct type.",10,null],[11,"contains_key","","Returns true if the map contains a value for the specified key.",10,null],[11,"keys","","Gets a collection of all keys in the document.",10,null],[11,"values","","Gets a collection of all values in the document.",10,null],[11,"len","","Returns the number of elements in the document.",10,null],[11,"is_empty","","Returns true if the document contains no elements",10,null],[11,"insert","","Sets the value of the entry with the OccupiedEntry's key,\nand returns the entry's old value. Accepts any type that\ncan be converted into Bson.",10,null],[11,"insert_bson","","Sets the value of the entry with the OccupiedEntry's key,\nand returns the entry's old value.",10,null],[11,"remove","","Takes the value of the entry out of the document, and returns it.",10,null],[11,"from","","",10,{"inputs":[{"name":"linkedhashmap"}],"output":{"name":"ordereddocument"}}],[11,"new","","",15,{"inputs":[],"output":{"name":"ordereddocumentvisitor"}}],[11,"visit_unit","","",15,null],[11,"visit_map","","",15,null],[6,"Document","bson","Alias for `OrderedDocument`.",null,null],[6,"Array","","Alias for `Vec<Bson>`.",null,null],[6,"EncoderResult","","Alias for `Result<T, EncoderError>`.",null,null],[6,"DecoderResult","","Alias for `Result<T, DecoderError>`.",null,null],[14,"bson!","","",null,null],[14,"doc!","","",null,null],[11,"serialize","","",16,null],[11,"deserialize","bson::ordered","Deserialize this value given this `Deserializer`.",10,{"inputs":[{"name":"d"}],"output":{"name":"result"}}]],"paths":[[4,"Bson"],[4,"EncoderError"],[4,"DecoderError"],[4,"Error"],[3,"ObjectId"],[4,"ElementType"],[4,"BinarySubtype"],[3,"Encoder"],[3,"Decoder"],[4,"ValueAccessError"],[3,"OrderedDocument"],[3,"Keys"],[3,"Values"],[3,"OrderedDocumentIntoIterator"],[3,"OrderedDocumentIterator"],[3,"OrderedDocumentVisitor"],[6,"Document"]]}; initSearch(searchIndex);