Trait ToDocument

Source
pub trait ToDocument {
    // Required method
    fn to_document(&self) -> Document;
}
Expand description

Trait for objects that can be converted to documents

Required Methods§

Source

fn to_document(&self) -> Document

Convert this object to a document

Implementations on Foreign Types§

Source§

impl ToDocument for str

Source§

impl ToDocument for String

Implementors§