pub struct Report { /* private fields */ }Implementations§
source§impl Report
impl Report
pub fn write_rfc5322<'x>(
&self,
submitter: &'x str,
from: impl Into<Address<'x>>,
to: impl Iterator<Item = &'x str>,
writer: impl Write
) -> Result<()>
pub fn to_rfc5322<'x>(
&self,
submitter: &'x str,
from: impl Into<Address<'x>>,
to: impl Iterator<Item = &'x str>
) -> Result<String>
pub fn to_xml(&self) -> String
source§impl Report
impl Report
pub fn new() -> Self
pub fn version(&self) -> f32
pub fn with_version(self, version: f32) -> Self
pub fn org_name(&self) -> &str
pub fn with_org_name(self, org_name: impl Into<String>) -> Self
pub fn email(&self) -> &str
pub fn with_email(self, email: impl Into<String>) -> Self
pub fn extra_contact_info(&self) -> Option<&str>
pub fn with_extra_contact_info(
self,
extra_contact_info: impl Into<String>
) -> Self
pub fn report_id(&self) -> &str
pub fn with_report_id(self, report_id: impl Into<String>) -> Self
pub fn date_range_begin(&self) -> u64
pub fn with_date_range_begin(self, date_range_begin: u64) -> Self
pub fn date_range_end(&self) -> u64
pub fn with_date_range_end(self, date_range_end: u64) -> Self
pub fn error(&self) -> &[String]
pub fn with_error(self, error: impl Into<String>) -> Self
pub fn domain(&self) -> &str
pub fn with_domain(self, domain: impl Into<String>) -> Self
pub fn fo(&self) -> Option<&str>
pub fn with_fo(self, fo: impl Into<String>) -> Self
pub fn version_published(&self) -> Option<f32>
pub fn with_version_published(self, version_published: f32) -> Self
pub fn adkim(&self) -> Alignment
pub fn with_adkim(self, adkim: Alignment) -> Self
pub fn aspf(&self) -> Alignment
pub fn with_aspf(self, aspf: Alignment) -> Self
pub fn p(&self) -> Disposition
pub fn with_p(self, p: Disposition) -> Self
pub fn sp(&self) -> Disposition
pub fn with_sp(self, sp: Disposition) -> Self
pub fn testing(&self) -> bool
pub fn with_testing(self, testing: bool) -> Self
pub fn records(&self) -> &[Record]
pub fn with_record(self, record: Record) -> Self
pub fn add_record(&mut self, record: Record)
pub fn with_policy_published(self, policy_published: PolicyPublished) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Report
impl<'de> Deserialize<'de> for Report
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more