[][src]Function netlify_toml::from_str

pub fn from_str(io: &str) -> Result<Config, Error>

Parses the contents of a netlify.toml file as a Config structure.

Arguments

io - A string slice that holds the content of a toml file.

Example

let io = r#"
[build]
  command = "make site"
"#;

let result = netlify_toml::from_str(io);