Rust
Rust
Example to Download Web Page as MHT Archive
See more MHT / HTML Email Examples
Demonstrates how to download a web page into a .mht web archive.Chilkat Rust Downloads
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
let mht = chilkat::Mht::new();
if mht.get_and_save_mht("http://www.piscatur.com/", "qa_data/mht/piscatur.mht").is_err() {
println!("{}", mht.last_error_text());
return;
} else {
println!("MHT Created!");
}