pub struct BackgroundServiceEventBuilder { /* private fields */ }Implementations§
Source§impl BackgroundServiceEventBuilder
impl BackgroundServiceEventBuilder
pub fn timestamp(self, timestamp: impl Into<TimeSinceEpoch>) -> Self
pub fn origin(self, origin: impl Into<String>) -> Self
pub fn service_worker_registration_id( self, service_worker_registration_id: impl Into<RegistrationId>, ) -> Self
pub fn service(self, service: impl Into<ServiceName>) -> Self
pub fn event_name(self, event_name: impl Into<String>) -> Self
pub fn instance_id(self, instance_id: impl Into<String>) -> Self
pub fn event_metadata(self, event_metadata: impl Into<EventMetadata>) -> Self
pub fn event_metadatas<I, S>(self, event_metadatas: I) -> Self
pub fn storage_key(self, storage_key: impl Into<String>) -> Self
pub fn build(self) -> Result<BackgroundServiceEvent, String>
Trait Implementations§
Source§impl Clone for BackgroundServiceEventBuilder
impl Clone for BackgroundServiceEventBuilder
Source§fn clone(&self) -> BackgroundServiceEventBuilder
fn clone(&self) -> BackgroundServiceEventBuilder
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 moreSource§impl Default for BackgroundServiceEventBuilder
impl Default for BackgroundServiceEventBuilder
Source§fn default() -> BackgroundServiceEventBuilder
fn default() -> BackgroundServiceEventBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BackgroundServiceEventBuilder
impl RefUnwindSafe for BackgroundServiceEventBuilder
impl Send for BackgroundServiceEventBuilder
impl Sync for BackgroundServiceEventBuilder
impl Unpin for BackgroundServiceEventBuilder
impl UnwindSafe for BackgroundServiceEventBuilder
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