pub struct GenerateBuilder<I1, I2, S: State = Empty>{ /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with call().
Implementations§
Source§impl<I1, I2, S: State> GenerateBuilder<I1, I2, S>
impl<I1, I2, S: State> GenerateBuilder<I1, I2, S>
Sourcepub fn call(self) -> Result<()>where
S: IsComplete,
pub fn call(self) -> Result<()>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn input(self, value: I1) -> GenerateBuilder<I1, I2, SetInput<S>>where
S::Input: IsUnset,
pub fn input(self, value: I1) -> GenerateBuilder<I1, I2, SetInput<S>>where
S::Input: IsUnset,
Required.
Sourcepub fn output(self, value: I2) -> GenerateBuilder<I1, I2, SetOutput<S>>where
S::Output: IsUnset,
pub fn output(self, value: I2) -> GenerateBuilder<I1, I2, SetOutput<S>>where
S::Output: IsUnset,
Required.
Auto Trait Implementations§
impl<I1, I2, S> Freeze for GenerateBuilder<I1, I2, S>
impl<I1, I2, S> RefUnwindSafe for GenerateBuilder<I1, I2, S>where
I1: RefUnwindSafe,
I2: RefUnwindSafe,
impl<I1, I2, S> Send for GenerateBuilder<I1, I2, S>
impl<I1, I2, S> Sync for GenerateBuilder<I1, I2, S>
impl<I1, I2, S> Unpin for GenerateBuilder<I1, I2, S>
impl<I1, I2, S> UnsafeUnpin for GenerateBuilder<I1, I2, S>where
I1: UnsafeUnpin,
I2: UnsafeUnpin,
impl<I1, I2, S> UnwindSafe for GenerateBuilder<I1, I2, S>where
I1: UnwindSafe,
I2: 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