pub fn to_toml<T>() -> Stringwhere
T: Document,
Expand description
Generates a TOML documentation for specified type.
Example
use doku::Document;
#[derive(Document)]
struct Config {
/// Database's host
db_host: String,
}
let doc = doku::to_toml::<Config>();
doku::assert_doc!(r#"
# Database's host
db_host = "string"
"#, doc);
For more control over the output format, please see: to_toml_fmt()
.