pub struct PluginBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> PluginBuilder<S>
impl<S: State> PluginBuilder<S>
Sourcepub fn build(self) -> Pluginwhere
S: IsComplete,
pub fn build(self) -> Pluginwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn file(self, value: PathBuf) -> PluginBuilder<SetFile<S>>where
S::File: IsUnset,
pub fn file(self, value: PathBuf) -> PluginBuilder<SetFile<S>>where
S::File: IsUnset,
Sourcepub fn maybe_file(self, value: Option<PathBuf>) -> PluginBuilder<SetFile<S>>where
S::File: IsUnset,
pub fn maybe_file(self, value: Option<PathBuf>) -> PluginBuilder<SetFile<S>>where
S::File: IsUnset,
Sourcepub fn args(self, value: Vec<(String, String)>) -> PluginBuilder<SetArgs<S>>where
S::Args: IsUnset,
pub fn args(self, value: Vec<(String, String)>) -> PluginBuilder<SetArgs<S>>where
S::Args: IsUnset,
Sourcepub fn maybe_args(
self,
value: Option<Vec<(String, String)>>,
) -> PluginBuilder<SetArgs<S>>where
S::Args: IsUnset,
pub fn maybe_args(
self,
value: Option<Vec<(String, String)>>,
) -> PluginBuilder<SetArgs<S>>where
S::Args: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for PluginBuilder<S>
impl<S> RefUnwindSafe for PluginBuilder<S>
impl<S> Send for PluginBuilder<S>
impl<S> Sync for PluginBuilder<S>
impl<S> Unpin for PluginBuilder<S>
impl<S> UnwindSafe for PluginBuilder<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