pub struct MatcherOptionsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> MatcherOptionsBuilder<S>
impl<S: State> MatcherOptionsBuilder<S>
Sourcepub fn build(self) -> MatcherOptionswhere
S: IsComplete,
pub fn build(self) -> MatcherOptionswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn input(
self,
value: impl Into<String>,
) -> MatcherOptionsBuilder<SetInput<S>>where
S::Input: IsUnset,
pub fn input(
self,
value: impl Into<String>,
) -> MatcherOptionsBuilder<SetInput<S>>where
S::Input: IsUnset,
Sourcepub fn maybe_input(
self,
value: Option<impl Into<String>>,
) -> MatcherOptionsBuilder<SetInput<S>>where
S::Input: IsUnset,
pub fn maybe_input(
self,
value: Option<impl Into<String>>,
) -> MatcherOptionsBuilder<SetInput<S>>where
S::Input: IsUnset,
Sourcepub fn output(
self,
value: impl Into<String>,
) -> MatcherOptionsBuilder<SetOutput<S>>where
S::Output: IsUnset,
pub fn output(
self,
value: impl Into<String>,
) -> MatcherOptionsBuilder<SetOutput<S>>where
S::Output: IsUnset,
Sourcepub fn maybe_output(
self,
value: Option<impl Into<String>>,
) -> MatcherOptionsBuilder<SetOutput<S>>where
S::Output: IsUnset,
pub fn maybe_output(
self,
value: Option<impl Into<String>>,
) -> MatcherOptionsBuilder<SetOutput<S>>where
S::Output: IsUnset,
Source§impl<S: State> MatcherOptionsBuilder<S>
impl<S: State> MatcherOptionsBuilder<S>
Sourcepub fn other(self, flag: impl Into<String>) -> Self
pub fn other(self, flag: impl Into<String>) -> Self
Appends one literal argument to MatcherOptions::other, preserving order.
Sourcepub fn maybe_other(self, flag: Option<impl Into<String>>) -> Self
pub fn maybe_other(self, flag: Option<impl Into<String>>) -> Self
Appends a present argument to MatcherOptions::other; None adds nothing.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for MatcherOptionsBuilder<S>
impl<S> RefUnwindSafe for MatcherOptionsBuilder<S>
impl<S> Send for MatcherOptionsBuilder<S>
impl<S> Sync for MatcherOptionsBuilder<S>
impl<S> Unpin for MatcherOptionsBuilder<S>
impl<S> UnsafeUnpin for MatcherOptionsBuilder<S>
impl<S> UnwindSafe for MatcherOptionsBuilder<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