pub struct ReportingApiReport<'a> { /* private fields */ }Expand description
An object representing a report generated by the Reporting API.
Implementations§
Source§impl<'a> ReportingApiReport<'a>
impl<'a> ReportingApiReport<'a>
Sourcepub fn builder(
id: impl Into<ReportId<'a>>,
initiator_url: impl Into<Cow<'a, str>>,
destination: impl Into<Cow<'a, str>>,
type_: impl Into<Cow<'a, str>>,
timestamp: TimeSinceEpoch,
depth: i64,
completed_attempts: i64,
body: Map<String, JsonValue>,
status: impl Into<ReportStatus>,
) -> ReportingApiReportBuilder<'a>
pub fn builder( id: impl Into<ReportId<'a>>, initiator_url: impl Into<Cow<'a, str>>, destination: impl Into<Cow<'a, str>>, type_: impl Into<Cow<'a, str>>, timestamp: TimeSinceEpoch, depth: i64, completed_attempts: i64, body: Map<String, JsonValue>, status: impl Into<ReportStatus>, ) -> ReportingApiReportBuilder<'a>
Creates a builder for this type with the required parameters:
id:initiator_url: The URL of the document that triggered the report.destination: The name of the endpoint group that should be used to deliver the report.type_: The type of the report (specifies the set of data that is contained in the report body).timestamp: When the report was generated.depth: How many uploads deep the related request was.completed_attempts: The number of delivery attempts made so far, not including an active attempt.body:status:
pub fn id(&self) -> &ReportId<'a>
Sourcepub fn initiator_url(&self) -> &str
pub fn initiator_url(&self) -> &str
The URL of the document that triggered the report.
Sourcepub fn destination(&self) -> &str
pub fn destination(&self) -> &str
The name of the endpoint group that should be used to deliver the report.
Sourcepub fn type_(&self) -> &str
pub fn type_(&self) -> &str
The type of the report (specifies the set of data that is contained in the report body).
Sourcepub fn timestamp(&self) -> &TimeSinceEpoch
pub fn timestamp(&self) -> &TimeSinceEpoch
When the report was generated.
Sourcepub fn completed_attempts(&self) -> i64
pub fn completed_attempts(&self) -> i64
The number of delivery attempts made so far, not including an active attempt.
pub fn body(&self) -> &Map<String, JsonValue>
pub fn status(&self) -> &ReportStatus
Trait Implementations§
Source§impl<'a> Clone for ReportingApiReport<'a>
impl<'a> Clone for ReportingApiReport<'a>
Source§fn clone(&self) -> ReportingApiReport<'a>
fn clone(&self) -> ReportingApiReport<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ReportingApiReport<'a>
impl<'a> Debug for ReportingApiReport<'a>
Source§impl<'a> Default for ReportingApiReport<'a>
impl<'a> Default for ReportingApiReport<'a>
Source§fn default() -> ReportingApiReport<'a>
fn default() -> ReportingApiReport<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for ReportingApiReport<'a>
impl<'de, 'a> Deserialize<'de> for ReportingApiReport<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for ReportingApiReport<'a>
impl<'a> RefUnwindSafe for ReportingApiReport<'a>
impl<'a> Send for ReportingApiReport<'a>
impl<'a> Sync for ReportingApiReport<'a>
impl<'a> Unpin for ReportingApiReport<'a>
impl<'a> UnsafeUnpin for ReportingApiReport<'a>
impl<'a> UnwindSafe for ReportingApiReport<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more