pub fn list_collections(
        &self,
        filter: impl Into<Option<Document>>,
        options: impl Into<Option<ListCollectionsOptions>>,
    ) -> Result<Cursor<CollectionSpecification>> {
        RUNTIME
            .block_on(
                self.async_database
                    .list_collections(filter.into(), options.into()),
            )
            .map(Cursor::new)
    }
/// Gets information about each of the collections in the database. The cursor will yield a
/// document pertaining to each collection in the database.
Gets information about each of the collections in the database. The cursor will yield a
document pertaining to each collection in the database.
Gets information about each of the collections in the database . The cursor will yield a document pertaining to each collection in the database .
pub fn list_collections(
        &self,
        filter: impl Into<Option<Document>>,
        options: impl Into<Option<ListCollectionsOptions>>,
    ) -> Result<Cursor<CollectionSpecification>> {
        RUNTIME
            .block_on(
                self.async_database
                    .list_collections(filter.into(), options.into()),
            )
            .map(Cursor::new)
    }
pub fn list_collections ( & self , filter : impl Into < Option < Document > > , options : impl Into < Option < ListCollectionsOptions > > , ) -> Result < Cursor < CollectionSpecification > > { RUNTIME . block_on ( self . async_database . list_collections ( filter . into ( ) , options . into ( ) ) , ) . map ( Cursor :: new ) }
Gets information about each of the collections in the database.
Gets information about each of the collections in the database .
&self
filter
impl Into<Option<Document>>
options
impl Into<Option<ListCollectionsOptions>>
&self
filter
impl Into<Option<Document>>
options
impl Into<Option<ListCollectionsOptions>>