#[non_exhaustive]pub struct MongodbCollection {
pub collection: String,
pub fields: Vec<MongodbField>,
/* private fields */
}
Expand description
MongoDB Collection.
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.collection: String
Collection name.
fields: Vec<MongodbField>
Fields in the collection.
Implementations§
Source§impl MongodbCollection
impl MongodbCollection
pub fn new() -> Self
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.
Sourcepub fn set_fields<T, V>(self, v: T) -> Self
pub fn set_fields<T, V>(self, v: T) -> Self
Sets the value of fields.
Trait Implementations§
Source§impl Clone for MongodbCollection
impl Clone for MongodbCollection
Source§fn clone(&self) -> MongodbCollection
fn clone(&self) -> MongodbCollection
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 MongodbCollection
impl Debug for MongodbCollection
Source§impl Default for MongodbCollection
impl Default for MongodbCollection
Source§fn default() -> MongodbCollection
fn default() -> MongodbCollection
Returns the “default value” for a type. Read more
Source§impl Message for MongodbCollection
impl Message for MongodbCollection
Source§impl PartialEq for MongodbCollection
impl PartialEq for MongodbCollection
impl StructuralPartialEq for MongodbCollection
Auto Trait Implementations§
impl Freeze for MongodbCollection
impl RefUnwindSafe for MongodbCollection
impl Send for MongodbCollection
impl Sync for MongodbCollection
impl Unpin for MongodbCollection
impl UnwindSafe for MongodbCollection
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