pub struct ObjectId { /* private fields */ }Implementations§
Source§impl ObjectId
impl ObjectId
Sourcepub fn from_bytes(value: Vec<u8>) -> ObjectId
pub fn from_bytes(value: Vec<u8>) -> ObjectId
new ObjectId(byte[] value).
pub fn empty() -> ObjectId
pub fn value(&self) -> Option<&[u8]>
pub fn new_object_id() -> ObjectId
Trait Implementations§
Source§impl BsonValue for ObjectId
impl BsonValue for ObjectId
Source§impl Display for ObjectId
ToString(): the value in lower-case hexadecimal digits; nothing for an
identifier without a value (the original returns null).
impl Display for ObjectId
ToString(): the value in lower-case hexadecimal digits; nothing for an
identifier without a value (the original returns null).
impl Eq for ObjectId
Auto Trait Implementations§
impl Freeze for ObjectId
impl RefUnwindSafe for ObjectId
impl Send for ObjectId
impl Sync for ObjectId
impl Unpin for ObjectId
impl UnsafeUnpin for ObjectId
impl UnwindSafe for ObjectId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more