pub struct SimplePluginBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> SimplePluginBuilder<S>
impl<S: State> SimplePluginBuilder<S>
Sourcepub fn build(self) -> SimplePluginwhere
S: IsComplete,
pub fn build(self) -> SimplePluginwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn data_converter(
self,
value: impl Into<SimplePluginOption<DataConverter>>,
) -> SimplePluginBuilder<SetDataConverter<S>>where
S::DataConverter: IsUnset,
pub fn data_converter(
self,
value: impl Into<SimplePluginOption<DataConverter>>,
) -> SimplePluginBuilder<SetDataConverter<S>>where
S::DataConverter: IsUnset,
Sourcepub fn maybe_data_converter(
self,
value: Option<impl Into<SimplePluginOption<DataConverter>>>,
) -> SimplePluginBuilder<SetDataConverter<S>>where
S::DataConverter: IsUnset,
pub fn maybe_data_converter(
self,
value: Option<impl Into<SimplePluginOption<DataConverter>>>,
) -> SimplePluginBuilder<SetDataConverter<S>>where
S::DataConverter: IsUnset,
Sourcepub fn client_interceptors(
self,
value: impl Into<SimplePluginOption<Vec<Arc<dyn ClientInterceptor>>>>,
) -> SimplePluginBuilder<SetClientInterceptors<S>>where
S::ClientInterceptors: IsUnset,
pub fn client_interceptors(
self,
value: impl Into<SimplePluginOption<Vec<Arc<dyn ClientInterceptor>>>>,
) -> SimplePluginBuilder<SetClientInterceptors<S>>where
S::ClientInterceptors: IsUnset,
Sourcepub fn maybe_client_interceptors(
self,
value: Option<impl Into<SimplePluginOption<Vec<Arc<dyn ClientInterceptor>>>>>,
) -> SimplePluginBuilder<SetClientInterceptors<S>>where
S::ClientInterceptors: IsUnset,
pub fn maybe_client_interceptors(
self,
value: Option<impl Into<SimplePluginOption<Vec<Arc<dyn ClientInterceptor>>>>>,
) -> SimplePluginBuilder<SetClientInterceptors<S>>where
S::ClientInterceptors: IsUnset,
Sourcepub fn worker_interceptors(
self,
value: impl Into<SimplePluginOption<Vec<Arc<dyn WorkerInterceptor>>>>,
) -> SimplePluginBuilder<SetWorkerInterceptors<S>>where
S::WorkerInterceptors: IsUnset,
pub fn worker_interceptors(
self,
value: impl Into<SimplePluginOption<Vec<Arc<dyn WorkerInterceptor>>>>,
) -> SimplePluginBuilder<SetWorkerInterceptors<S>>where
S::WorkerInterceptors: IsUnset,
Sourcepub fn maybe_worker_interceptors(
self,
value: Option<impl Into<SimplePluginOption<Vec<Arc<dyn WorkerInterceptor>>>>>,
) -> SimplePluginBuilder<SetWorkerInterceptors<S>>where
S::WorkerInterceptors: IsUnset,
pub fn maybe_worker_interceptors(
self,
value: Option<impl Into<SimplePluginOption<Vec<Arc<dyn WorkerInterceptor>>>>>,
) -> SimplePluginBuilder<SetWorkerInterceptors<S>>where
S::WorkerInterceptors: IsUnset,
Sourcepub fn activity_inbound_interceptors(
self,
value: impl Into<SimplePluginOption<Vec<Arc<dyn ActivityInboundInterceptor>>>>,
) -> SimplePluginBuilder<SetActivityInboundInterceptors<S>>where
S::ActivityInboundInterceptors: IsUnset,
pub fn activity_inbound_interceptors(
self,
value: impl Into<SimplePluginOption<Vec<Arc<dyn ActivityInboundInterceptor>>>>,
) -> SimplePluginBuilder<SetActivityInboundInterceptors<S>>where
S::ActivityInboundInterceptors: IsUnset,
Sourcepub fn maybe_activity_inbound_interceptors(
self,
value: Option<impl Into<SimplePluginOption<Vec<Arc<dyn ActivityInboundInterceptor>>>>>,
) -> SimplePluginBuilder<SetActivityInboundInterceptors<S>>where
S::ActivityInboundInterceptors: IsUnset,
pub fn maybe_activity_inbound_interceptors(
self,
value: Option<impl Into<SimplePluginOption<Vec<Arc<dyn ActivityInboundInterceptor>>>>>,
) -> SimplePluginBuilder<SetActivityInboundInterceptors<S>>where
S::ActivityInboundInterceptors: IsUnset,
Sourcepub fn workflow_interceptors(
self,
value: impl Into<SimplePluginOption<Vec<WorkflowInterceptorConstructor>>>,
) -> SimplePluginBuilder<SetWorkflowInterceptors<S>>where
S::WorkflowInterceptors: IsUnset,
pub fn workflow_interceptors(
self,
value: impl Into<SimplePluginOption<Vec<WorkflowInterceptorConstructor>>>,
) -> SimplePluginBuilder<SetWorkflowInterceptors<S>>where
S::WorkflowInterceptors: IsUnset,
Sourcepub fn maybe_workflow_interceptors(
self,
value: Option<impl Into<SimplePluginOption<Vec<WorkflowInterceptorConstructor>>>>,
) -> SimplePluginBuilder<SetWorkflowInterceptors<S>>where
S::WorkflowInterceptors: IsUnset,
pub fn maybe_workflow_interceptors(
self,
value: Option<impl Into<SimplePluginOption<Vec<WorkflowInterceptorConstructor>>>>,
) -> SimplePluginBuilder<SetWorkflowInterceptors<S>>where
S::WorkflowInterceptors: IsUnset,
Sourcepub fn activities(
self,
value: impl Into<SimplePluginOption<ActivityDefinitions>>,
) -> SimplePluginBuilder<SetActivities<S>>where
S::Activities: IsUnset,
pub fn activities(
self,
value: impl Into<SimplePluginOption<ActivityDefinitions>>,
) -> SimplePluginBuilder<SetActivities<S>>where
S::Activities: IsUnset,
Sourcepub fn maybe_activities(
self,
value: Option<impl Into<SimplePluginOption<ActivityDefinitions>>>,
) -> SimplePluginBuilder<SetActivities<S>>where
S::Activities: IsUnset,
pub fn maybe_activities(
self,
value: Option<impl Into<SimplePluginOption<ActivityDefinitions>>>,
) -> SimplePluginBuilder<SetActivities<S>>where
S::Activities: IsUnset,
Sourcepub fn workflows(
self,
value: impl Into<SimplePluginOption<WorkflowDefinitions>>,
) -> SimplePluginBuilder<SetWorkflows<S>>
pub fn workflows( self, value: impl Into<SimplePluginOption<WorkflowDefinitions>>, ) -> SimplePluginBuilder<SetWorkflows<S>>
Sourcepub fn maybe_workflows(
self,
value: Option<impl Into<SimplePluginOption<WorkflowDefinitions>>>,
) -> SimplePluginBuilder<SetWorkflows<S>>
pub fn maybe_workflows( self, value: Option<impl Into<SimplePluginOption<WorkflowDefinitions>>>, ) -> SimplePluginBuilder<SetWorkflows<S>>
Auto Trait Implementations§
impl<S = Empty> !RefUnwindSafe for SimplePluginBuilder<S>
impl<S = Empty> !UnwindSafe for SimplePluginBuilder<S>
impl<S> Freeze for SimplePluginBuilder<S>
impl<S> Send for SimplePluginBuilder<S>
impl<S> Sync for SimplePluginBuilder<S>
impl<S> Unpin for SimplePluginBuilder<S>
impl<S> UnsafeUnpin for SimplePluginBuilder<S>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request