pub struct MeasurementProtocolConfig { /* private fields */ }Expand description
Configuration used to dispatch analytics events through the GA4 Measurement Protocol.
Implementations§
Source§impl MeasurementProtocolConfig
impl MeasurementProtocolConfig
pub fn new( measurement_id: impl Into<String>, api_secret: impl Into<String>, ) -> Self
pub fn with_endpoint(self, endpoint: MeasurementProtocolEndpoint) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Trait Implementations§
Source§impl Clone for MeasurementProtocolConfig
impl Clone for MeasurementProtocolConfig
Source§fn clone(&self) -> MeasurementProtocolConfig
fn clone(&self) -> MeasurementProtocolConfig
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 MeasurementProtocolConfig
impl RefUnwindSafe for MeasurementProtocolConfig
impl Send for MeasurementProtocolConfig
impl Sync for MeasurementProtocolConfig
impl Unpin for MeasurementProtocolConfig
impl UnwindSafe for MeasurementProtocolConfig
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