pub struct ReportingApiReportBuilder { /* private fields */ }Expand description
Builder for ReportingApiReport.
Implementations§
Source§impl ReportingApiReportBuilder
impl ReportingApiReportBuilder
pub fn id<VALUE: Into<ReportId>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn initiator_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn initiator_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The URL of the document that triggered the report.
Sourcepub fn destination<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn destination<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The name of the endpoint group that should be used to deliver the report.
Sourcepub fn type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The type of the report (specifies the set of data that is contained in the report body).
Sourcepub fn timestamp<VALUE: Into<TimeSinceEpoch>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn timestamp<VALUE: Into<TimeSinceEpoch>>( &mut self, value: VALUE, ) -> &mut Self
When the report was generated.
Sourcepub fn depth<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn depth<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
How many uploads deep the related request was.
Sourcepub fn completed_attempts<VALUE: Into<JsUInt>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn completed_attempts<VALUE: Into<JsUInt>>( &mut self, value: VALUE, ) -> &mut Self
The number of delivery attempts made so far, not including an active attempt.
pub fn body<VALUE: Into<Json>>(&mut self, value: VALUE) -> &mut Self
pub fn status<VALUE: Into<ReportStatus>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<ReportingApiReport, ReportingApiReportBuilderError>
pub fn build( &self, ) -> Result<ReportingApiReport, ReportingApiReportBuilderError>
Trait Implementations§
Source§impl Clone for ReportingApiReportBuilder
impl Clone for ReportingApiReportBuilder
Source§fn clone(&self) -> ReportingApiReportBuilder
fn clone(&self) -> ReportingApiReportBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReportingApiReportBuilder
impl RefUnwindSafe for ReportingApiReportBuilder
impl Send for ReportingApiReportBuilder
impl Sync for ReportingApiReportBuilder
impl Unpin for ReportingApiReportBuilder
impl UnsafeUnpin for ReportingApiReportBuilder
impl UnwindSafe for ReportingApiReportBuilder
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