pub trait IntoDocument {
    // Required method
    fn into_document<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Document>> + Send + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

A trait for types that can be converted into a document.

Required Methods§

source

fn into_document<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<Document>> + Send + 'async_trait>>
where Self: 'async_trait,

Convert the type into a document.

Implementations on Foreign Types§

source§

impl IntoDocument for &str

source§

fn into_document<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<Document>> + Send + 'async_trait>>
where Self: 'async_trait,

source§

impl IntoDocument for &String

source§

fn into_document<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<Document>> + Send + 'async_trait>>
where Self: 'async_trait,

source§

impl IntoDocument for String

source§

fn into_document<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<Document>> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§