use-mailto 0.1.0

mailto URI primitives for RustUse
Documentation
  • Coverage
  • 100%
    37 out of 37 items documented1 out of 28 items with examples
  • Size
  • Source code size: 14.35 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 742.52 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-email
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-mailto

mailto: URI primitives for RustUse.

Experimental

use-mailto is experimental while use-email remains below 0.3.0.

Example

use use_mailto::MailtoBuilder;

let uri = MailtoBuilder::new()
    .to("jane@example.com")?
    .subject("Hello there")
    .body("A short note.")
    .build();

assert_eq!(uri.to_string(), "mailto:jane@example.com?subject=Hello%20there&body=A%20short%20note.");
# Ok::<(), use_mailto::MailtoError>(())

Scope

  • Mailto addresses, fields, queries, URI containers, and builders.
  • Minimal deterministic percent encoding for common fields.

Non-goals

  • Complete URI parser behavior.
  • HTML form handling.
  • Client launch or OS integration.

License

Licensed under either Apache-2.0 or MIT.