Struct monoxide::Database [−][src]
pub struct Database { pub db: Database, }
Fields
db: Database
Implementations
pub async fn find_one_and_delete<R>(
&self,
collection: &str,
filter: Document,
options: Option<FindOneAndDeleteOptions>
) -> Result<R, String> where
R: Deserialize<'r>,
[src]pub async fn delete_many(
&self,
collection: &str,
query: Document,
options: Option<DeleteOptions>
) -> Result<i64, String>
[src]pub async fn find_one_and_update<R>(
&self,
collection: &str,
filter: Document,
update: Document,
options: Option<FindOneAndUpdateOptions>
) -> Result<R, String> where
R: Deserialize<'r>,
[src]pub async fn insert_many<D, R>(
&self,
collection: &str,
list_document: Vec<D>,
options: Option<InsertManyOptions>
) -> Result<Vec<R>, String> where
D: Serialize,
R: Deserialize<'r>,
[src]pub async fn insert_one<D, R>(
&self,
collection: &str,
document: D,
options: Option<InsertOneOptions>
) -> Result<R, String> where
D: Serialize,
R: Deserialize<'r>,
[src]pub async fn update_many(
&self,
collection: &str,
query: Document,
update: Document,
options: Option<UpdateOptions>
) -> Result<i64, String>
[src]Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Database
impl !UnwindSafe for Database
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V