pub struct AttributionReportingReportSentEventParamsBuilder { /* private fields */ }Expand description
Builder for AttributionReportingReportSentEventParams.
Implementations§
Source§impl AttributionReportingReportSentEventParamsBuilder
impl AttributionReportingReportSentEventParamsBuilder
pub fn url(&mut self, value: String) -> &mut Self
pub fn body(&mut self, value: Json) -> &mut Self
pub fn result(&mut self, value: AttributionReportingReportResult) -> &mut Self
Sourcepub fn net_error(&mut self, value: Option<JsUInt>) -> &mut Self
pub fn net_error(&mut self, value: Option<JsUInt>) -> &mut Self
If result is sent, populated with net/HTTP status.
pub fn net_error_name(&mut self, value: Option<String>) -> &mut Self
pub fn http_status_code(&mut self, value: Option<JsUInt>) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<AttributionReportingReportSentEventParams, AttributionReportingReportSentEventParamsBuilderError>
pub fn build( &self, ) -> Result<AttributionReportingReportSentEventParams, AttributionReportingReportSentEventParamsBuilderError>
Builds a new AttributionReportingReportSentEventParams.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for AttributionReportingReportSentEventParamsBuilder
impl Clone for AttributionReportingReportSentEventParamsBuilder
Source§fn clone(&self) -> AttributionReportingReportSentEventParamsBuilder
fn clone(&self) -> AttributionReportingReportSentEventParamsBuilder
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 AttributionReportingReportSentEventParamsBuilder
impl RefUnwindSafe for AttributionReportingReportSentEventParamsBuilder
impl Send for AttributionReportingReportSentEventParamsBuilder
impl Sync for AttributionReportingReportSentEventParamsBuilder
impl Unpin for AttributionReportingReportSentEventParamsBuilder
impl UnsafeUnpin for AttributionReportingReportSentEventParamsBuilder
impl UnwindSafe for AttributionReportingReportSentEventParamsBuilder
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