use-dmarc 0.1.0

DMARC policy metadata primitives for RustUse
Documentation
  • Coverage
  • 100%
    45 out of 45 items documented1 out of 28 items with examples
  • Size
  • Source code size: 14.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.03 MB 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-dmarc

DMARC policy metadata primitives for RustUse.

Experimental

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

Example

use use_dmarc::{DmarcPercentage, DmarcPolicy, DmarcRecord};

let record = DmarcRecord::new(DmarcPolicy::Quarantine).with_percentage(DmarcPercentage::new(50)?);

assert_eq!(record.to_string(), "v=DMARC1; p=quarantine; pct=50");
# Ok::<(), use_dmarc::DmarcError>(())

Scope

  • DMARC policy, subdomain policy, alignment, report URI, failure option, result, and percentage metadata.

Non-goals

  • DNS lookup.
  • Aggregate or forensic report ingestion.
  • Policy enforcement.

License

Licensed under either Apache-2.0 or MIT.