pub struct Builder<T>(/* private fields */);
Expand description

A builder for WitchcraftEnvelopeV1

Implementations§

Source§

impl Builder<TypeStage>

Source

pub fn type_(self, type_: impl Into<String>) -> Builder<DeploymentStage>

Sets the type_ field.

Source§

impl Builder<DeploymentStage>

Source

pub fn deployment( self, deployment: impl Into<String>, ) -> Builder<EnvironmentStage>

Sets the deployment field.

Source§

impl Builder<EnvironmentStage>

Source

pub fn environment( self, environment: impl Into<String>, ) -> Builder<EnvironmentIdStage>

Sets the environment field.

Source§

impl Builder<EnvironmentIdStage>

Source

pub fn environment_id( self, environment_id: impl Into<String>, ) -> Builder<HostStage>

Sets the environment_id field.

Source§

impl Builder<HostStage>

Source

pub fn host(self, host: impl Into<String>) -> Builder<NodeIdStage>

Sets the host field.

Source§

impl Builder<NodeIdStage>

Source

pub fn node_id(self, node_id: impl Into<String>) -> Builder<ServiceStage>

Sets the node_id field.

Source§

impl Builder<ServiceStage>

Source

pub fn service(self, service: impl Into<String>) -> Builder<ServiceIdStage>

Sets the service field.

Source§

impl Builder<ServiceIdStage>

Source

pub fn service_id(self, service_id: impl Into<String>) -> Builder<StackStage>

Sets the service_id field.

Source§

impl Builder<StackStage>

Source

pub fn stack(self, stack: impl Into<String>) -> Builder<StackIdStage>

Sets the stack field.

Source§

impl Builder<StackIdStage>

Source

pub fn stack_id(self, stack_id: impl Into<String>) -> Builder<ProductStage>

Sets the stack_id field.

Source§

impl Builder<ProductStage>

Source

pub fn product(self, product: impl Into<String>) -> Builder<ProductVersionStage>

Sets the product field.

Source§

impl Builder<ProductVersionStage>

Source

pub fn product_version( self, product_version: impl Into<String>, ) -> Builder<PayloadStage>

Sets the product_version field.

Source§

impl Builder<PayloadStage>

Source

pub fn payload(self, payload: impl Serialize) -> Builder<ApolloEntityIdStage>

Sets the payload field.

Source§

impl Builder<ApolloEntityIdStage>

Source

pub fn apollo_entity_id( self, apollo_entity_id: impl Into<String>, ) -> Builder<ApolloEnvironmentIdStage>

Sets the apollo_entity_id field.

Source§

impl Builder<ApolloEnvironmentIdStage>

Source

pub fn apollo_environment_id( self, apollo_environment_id: impl Into<String>, ) -> Builder<Complete>

Sets the apollo_environment_id field.

Source§

impl Builder<Complete>

Source

pub fn type_(self, type_: impl Into<String>) -> Self

Sets the type_ field.

Source

pub fn deployment(self, deployment: impl Into<String>) -> Self

Sets the deployment field.

Source

pub fn environment(self, environment: impl Into<String>) -> Self

Sets the environment field.

Source

pub fn environment_id(self, environment_id: impl Into<String>) -> Self

Sets the environment_id field.

Source

pub fn host(self, host: impl Into<String>) -> Self

Sets the host field.

Source

pub fn node_id(self, node_id: impl Into<String>) -> Self

Sets the node_id field.

Source

pub fn service(self, service: impl Into<String>) -> Self

Sets the service field.

Source

pub fn service_id(self, service_id: impl Into<String>) -> Self

Sets the service_id field.

Source

pub fn stack(self, stack: impl Into<String>) -> Self

Sets the stack field.

Source

pub fn stack_id(self, stack_id: impl Into<String>) -> Self

Sets the stack_id field.

Source

pub fn product(self, product: impl Into<String>) -> Self

Sets the product field.

Source

pub fn product_version(self, product_version: impl Into<String>) -> Self

Sets the product_version field.

Source

pub fn payload(self, payload: impl Serialize) -> Self

Sets the payload field.

Source

pub fn apollo_entity_id(self, apollo_entity_id: impl Into<String>) -> Self

Sets the apollo_entity_id field.

Source

pub fn apollo_environment_id( self, apollo_environment_id: impl Into<String>, ) -> Self

Sets the apollo_environment_id field.

Source

pub fn build(self) -> WitchcraftEnvelopeV1

Consumes the builder, returning a WitchcraftEnvelopeV1.

Trait Implementations§

Source§

impl Default for Builder<TypeStage>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<WitchcraftEnvelopeV1> for Builder<Complete>

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.