pub struct CommandContextBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> CommandContextBuilder<S>
impl<S: State> CommandContextBuilder<S>
Sourcepub fn build(self) -> CommandContextwhere
S: IsComplete,
pub fn build(self) -> CommandContextwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn data(
self,
value: CommandContextData,
) -> CommandContextBuilder<SetData<S>>where
S::Data: IsUnset,
pub fn data(
self,
value: CommandContextData,
) -> CommandContextBuilder<SetData<S>>where
S::Data: IsUnset,
Required.
Sourcepub fn execute(self, value: Svc) -> CommandContextBuilder<SetExecute<S>>where
S::Execute: IsUnset,
pub fn execute(self, value: Svc) -> CommandContextBuilder<SetExecute<S>>where
S::Execute: IsUnset,
Required.
Sourcepub fn get_jwt(self, value: Svc) -> CommandContextBuilder<SetGetJwt<S>>where
S::GetJwt: IsUnset,
pub fn get_jwt(self, value: Svc) -> CommandContextBuilder<SetGetJwt<S>>where
S::GetJwt: IsUnset,
Required.
Sourcepub fn node_log(
self,
value: NodeLogSender,
) -> CommandContextBuilder<SetNodeLog<S>>where
S::NodeLog: IsUnset,
pub fn node_log(
self,
value: NodeLogSender,
) -> CommandContextBuilder<SetNodeLog<S>>where
S::NodeLog: IsUnset,
Required.
Sourcepub fn flow(self, value: FlowServices) -> CommandContextBuilder<SetFlow<S>>where
S::Flow: IsUnset,
pub fn flow(self, value: FlowServices) -> CommandContextBuilder<SetFlow<S>>where
S::Flow: IsUnset,
Required.
Auto Trait Implementations§
impl<S> Freeze for CommandContextBuilder<S>
impl<S = Empty> !RefUnwindSafe for CommandContextBuilder<S>
impl<S> Send for CommandContextBuilder<S>
impl<S> Sync for CommandContextBuilder<S>
impl<S> Unpin for CommandContextBuilder<S>
impl<S = Empty> !UnwindSafe for CommandContextBuilder<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