pub struct WriterOptionsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> WriterOptionsBuilder<S>
impl<S: State> WriterOptionsBuilder<S>
Sourcepub fn build(self) -> WriterOptionswhere
S: IsComplete,
pub fn build(self) -> WriterOptionswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn input(
self,
value: impl Into<String>,
) -> WriterOptionsBuilder<SetInput<S>>where
S::Input: IsUnset,
pub fn input(
self,
value: impl Into<String>,
) -> WriterOptionsBuilder<SetInput<S>>where
S::Input: IsUnset,
Sourcepub fn maybe_input(
self,
value: Option<impl Into<String>>,
) -> WriterOptionsBuilder<SetInput<S>>where
S::Input: IsUnset,
pub fn maybe_input(
self,
value: Option<impl Into<String>>,
) -> WriterOptionsBuilder<SetInput<S>>where
S::Input: IsUnset,
Sourcepub fn output(
self,
value: impl Into<String>,
) -> WriterOptionsBuilder<SetOutput<S>>where
S::Output: IsUnset,
pub fn output(
self,
value: impl Into<String>,
) -> WriterOptionsBuilder<SetOutput<S>>where
S::Output: IsUnset,
Optional (Some / Option setters).
Export format passed as --output=FORMAT (-o in the CLI).
None omits the option; the specified default is auto, requesting the
program’s documented format-selection policy. auto is not itself a
serialization. This field selects neither an output file nor capture behavior.
Sourcepub fn maybe_output(
self,
value: Option<impl Into<String>>,
) -> WriterOptionsBuilder<SetOutput<S>>where
S::Output: IsUnset,
pub fn maybe_output(
self,
value: Option<impl Into<String>>,
) -> WriterOptionsBuilder<SetOutput<S>>where
S::Output: IsUnset,
Optional (Some / Option setters).
Export format passed as --output=FORMAT (-o in the CLI).
None omits the option; the specified default is auto, requesting the
program’s documented format-selection policy. auto is not itself a
serialization. This field selects neither an output file nor capture behavior.
Source§impl<S: State> WriterOptionsBuilder<S>
impl<S: State> WriterOptionsBuilder<S>
Sourcepub fn other(self, flag: impl Into<String>) -> Self
pub fn other(self, flag: impl Into<String>) -> Self
Appends one literal argument to WriterOptions::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 WriterOptions::other; None adds nothing.