#[non_exhaustive]pub struct MongodbObjectIdentifier {
pub database: String,
pub collection: String,
/* private fields */
}
Expand description
MongoDB data source object identifier.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.database: String
Required. The database name.
collection: String
Required. The collection name.
Implementations§
Source§impl MongodbObjectIdentifier
impl MongodbObjectIdentifier
pub fn new() -> Self
Sourcepub fn set_database<T: Into<String>>(self, v: T) -> Self
pub fn set_database<T: Into<String>>(self, v: T) -> Self
Sets the value of database.
Sourcepub fn set_collection<T: Into<String>>(self, v: T) -> Self
pub fn set_collection<T: Into<String>>(self, v: T) -> Self
Sets the value of collection.
Trait Implementations§
Source§impl Clone for MongodbObjectIdentifier
impl Clone for MongodbObjectIdentifier
Source§fn clone(&self) -> MongodbObjectIdentifier
fn clone(&self) -> MongodbObjectIdentifier
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MongodbObjectIdentifier
impl Debug for MongodbObjectIdentifier
Source§impl Default for MongodbObjectIdentifier
impl Default for MongodbObjectIdentifier
Source§fn default() -> MongodbObjectIdentifier
fn default() -> MongodbObjectIdentifier
Returns the “default value” for a type. Read more
Source§impl Message for MongodbObjectIdentifier
impl Message for MongodbObjectIdentifier
Source§impl PartialEq for MongodbObjectIdentifier
impl PartialEq for MongodbObjectIdentifier
impl StructuralPartialEq for MongodbObjectIdentifier
Auto Trait Implementations§
impl Freeze for MongodbObjectIdentifier
impl RefUnwindSafe for MongodbObjectIdentifier
impl Send for MongodbObjectIdentifier
impl Sync for MongodbObjectIdentifier
impl Unpin for MongodbObjectIdentifier
impl UnwindSafe for MongodbObjectIdentifier
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