# use-dmarc
DMARC policy metadata primitives for `RustUse`.
## Experimental
`use-dmarc` is experimental while `use-email` remains below `0.3.0`.
## Example
```rust
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.