pub struct Builder<T>(/* private fields */);Expand description
A builder for WrappedLogV1
Implementations§
Source§impl Builder<PayloadStage>
impl Builder<PayloadStage>
Sourcepub fn payload(self, payload: WrappedLogV1Payload) -> Builder<EntityNameStage>
pub fn payload(self, payload: WrappedLogV1Payload) -> Builder<EntityNameStage>
Sets the payload field.
Source§impl Builder<EntityNameStage>
impl Builder<EntityNameStage>
Sourcepub fn entity_name(
self,
entity_name: impl Into<String>,
) -> Builder<EntityVersionStage>
pub fn entity_name( self, entity_name: impl Into<String>, ) -> Builder<EntityVersionStage>
Sets the entity_name field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn payload(self, payload: WrappedLogV1Payload) -> Self
pub fn payload(self, payload: WrappedLogV1Payload) -> Self
Sets the payload field.
Sourcepub fn entity_name(self, entity_name: impl Into<String>) -> Self
pub fn entity_name(self, entity_name: impl Into<String>) -> Self
Sets the entity_name field.
Sourcepub fn entity_version(self, entity_version: impl Into<String>) -> Self
pub fn entity_version(self, entity_version: impl Into<String>) -> Self
Sets the entity_version field.
Sourcepub fn service_id(self, service_id: impl Into<Option<String>>) -> Self
pub fn service_id(self, service_id: impl Into<Option<String>>) -> Self
Sets the service_id field.
Sourcepub fn build(self) -> WrappedLogV1
pub fn build(self) -> WrappedLogV1
Consumes the builder, returning a WrappedLogV1.
Trait Implementations§
Source§impl From<WrappedLogV1> for Builder<Complete>
impl From<WrappedLogV1> for Builder<Complete>
Source§fn from(v: WrappedLogV1) -> Self
fn from(v: WrappedLogV1) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: UnwindSafe,
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