use-spf 0.1.0

SPF record metadata primitives for RustUse
Documentation
  • Coverage
  • 100%
    46 out of 46 items documented1 out of 24 items with examples
  • Size
  • Source code size: 13.36 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 950.33 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s 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-spf

SPF record metadata primitives for RustUse.

Experimental

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

Example

use use_spf::{SpfMechanism, SpfQualifier, SpfRecord, SpfTerm};

let record = SpfRecord::new()
    .with_term(SpfTerm::new(SpfQualifier::Pass, SpfMechanism::Mx))
    .with_term(SpfTerm::new(SpfQualifier::Fail, SpfMechanism::All));

assert_eq!(record.to_string(), "v=spf1 mx -all");

Scope

  • SPF version, qualifier, mechanism, modifier, term, record, and result metadata.
  • Stable display labels for common SPF vocabulary.

Non-goals

  • DNS lookup.
  • SPF policy evaluation.
  • Sender authentication decisions.

License

Licensed under either Apache-2.0 or MIT.