pub struct Builder<T>(/* private fields */);Expand description
A builder for WitchcraftEnvelopeV1
Implementations§
Source§impl Builder<DeploymentStage>
impl Builder<DeploymentStage>
Sourcepub fn deployment(
self,
deployment: impl Into<String>,
) -> Builder<EnvironmentStage>
pub fn deployment( self, deployment: impl Into<String>, ) -> Builder<EnvironmentStage>
Sets the deployment field.
Source§impl Builder<EnvironmentStage>
impl Builder<EnvironmentStage>
Sourcepub fn environment(
self,
environment: impl Into<String>,
) -> Builder<EnvironmentIdStage>
pub fn environment( self, environment: impl Into<String>, ) -> Builder<EnvironmentIdStage>
Sets the environment field.
Source§impl Builder<NodeIdStage>
impl Builder<NodeIdStage>
Source§impl Builder<ServiceStage>
impl Builder<ServiceStage>
Source§impl Builder<ServiceIdStage>
impl Builder<ServiceIdStage>
Sourcepub fn service_id(self, service_id: impl Into<String>) -> Builder<StackStage>
pub fn service_id(self, service_id: impl Into<String>) -> Builder<StackStage>
Sets the service_id field.
Source§impl Builder<StackStage>
impl Builder<StackStage>
Source§impl Builder<StackIdStage>
impl Builder<StackIdStage>
Source§impl Builder<ProductStage>
impl Builder<ProductStage>
Source§impl Builder<ProductVersionStage>
impl Builder<ProductVersionStage>
Sourcepub fn product_version(
self,
product_version: impl Into<String>,
) -> Builder<PayloadStage>
pub fn product_version( self, product_version: impl Into<String>, ) -> Builder<PayloadStage>
Sets the product_version field.
Source§impl Builder<PayloadStage>
impl Builder<PayloadStage>
Sourcepub fn payload(self, payload: impl Serialize) -> Builder<ApolloEntityIdStage>
pub fn payload(self, payload: impl Serialize) -> Builder<ApolloEntityIdStage>
Sets the payload field.
Source§impl Builder<ApolloEntityIdStage>
impl Builder<ApolloEntityIdStage>
Sourcepub fn apollo_entity_id(
self,
apollo_entity_id: impl Into<String>,
) -> Builder<ApolloEnvironmentIdStage>
pub fn apollo_entity_id( self, apollo_entity_id: impl Into<String>, ) -> Builder<ApolloEnvironmentIdStage>
Sets the apollo_entity_id field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn deployment(self, deployment: impl Into<String>) -> Self
pub fn deployment(self, deployment: impl Into<String>) -> Self
Sets the deployment field.
Sourcepub fn environment(self, environment: impl Into<String>) -> Self
pub fn environment(self, environment: impl Into<String>) -> Self
Sets the environment field.
Sourcepub fn environment_id(self, environment_id: impl Into<String>) -> Self
pub fn environment_id(self, environment_id: impl Into<String>) -> Self
Sets the environment_id field.
Sourcepub fn service_id(self, service_id: impl Into<String>) -> Self
pub fn service_id(self, service_id: impl Into<String>) -> Self
Sets the service_id field.
Sourcepub fn product_version(self, product_version: impl Into<String>) -> Self
pub fn product_version(self, product_version: impl Into<String>) -> Self
Sets the product_version field.
Sourcepub fn apollo_entity_id(self, apollo_entity_id: impl Into<String>) -> Self
pub fn apollo_entity_id(self, apollo_entity_id: impl Into<String>) -> Self
Sets the apollo_entity_id field.
Sourcepub fn apollo_environment_id(
self,
apollo_environment_id: impl Into<String>,
) -> Self
pub fn apollo_environment_id( self, apollo_environment_id: impl Into<String>, ) -> Self
Sets the apollo_environment_id field.
Sourcepub fn build(self) -> WitchcraftEnvelopeV1
pub fn build(self) -> WitchcraftEnvelopeV1
Consumes the builder, returning a WitchcraftEnvelopeV1.
Trait Implementations§
Source§impl From<WitchcraftEnvelopeV1> for Builder<Complete>
impl From<WitchcraftEnvelopeV1> for Builder<Complete>
Source§fn from(v: WitchcraftEnvelopeV1) -> Self
fn from(v: WitchcraftEnvelopeV1) -> 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