[−][src]Struct polodb_bson::Document
Implementations
impl Document
[src]
pub fn new(id_maker: &mut ObjectIdMaker) -> Document
[src]
pub fn new_without_id() -> Document
[src]
pub fn insert(&mut self, key: String, value: Value) -> Option<Value>
[src]
pub fn remove(&mut self, key: &str) -> Option<Value>
[src]
pub fn get(&self, key: &str) -> Option<&Value>
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn pkey_id(&self) -> Option<Value>
[src]
pub fn from_bytes(bytes: &[u8]) -> BsonResult<Document>
[src]
pub fn parse_key(bytes: &[u8], ptr: usize) -> BsonResult<(String, usize)>
[src]
pub fn to_bytes(&self) -> BsonResult<Vec<u8>>
[src]
pub fn iter(&self) -> Iter<'_, String, Value>ⓘ
[src]
Trait Implementations
impl AsMut<Document> for Document
[src]
impl AsRef<Document> for Document
[src]
impl Clone for Document
[src]
impl Debug for Document
[src]
impl Display for Document
[src]
impl From<Document> for Value
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Document
impl !Send for Document
impl !Sync for Document
impl Unpin for Document
impl !UnwindSafe for Document
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,