Expand description
§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");§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.
Structs§
- Dmarc
Percentage - DMARC percentage tag value.
- Dmarc
Record - DMARC record metadata. This type does not enforce policy.
- Dmarc
Report Uri - DMARC reporting URI metadata.
- Dmarc
Subdomain Policy - DMARC subdomain policy wrapper.
Enums§
- Dmarc
Alignment Mode - DMARC alignment mode.
- Dmarc
Error - Error returned when DMARC metadata is invalid.
- Dmarc
Failure Option - DMARC failure reporting option.
- Dmarc
Policy - DMARC policy label.
- Dmarc
Result - DMARC result label.