pub struct BazaarOutputBuilder<S = Empty>where
S: State,{ /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S> BazaarOutputBuilder<S>where
S: State,
impl<S> BazaarOutputBuilder<S>where
S: State,
Sourcepub fn build(self) -> BazaarOutputwhere
S: IsComplete,
pub fn build(self) -> BazaarOutputwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn output_type(
self,
value: impl Into<String>,
) -> BazaarOutputBuilder<SetOutputType<S>>where
<S as State>::OutputType: IsUnset,
pub fn output_type(
self,
value: impl Into<String>,
) -> BazaarOutputBuilder<SetOutputType<S>>where
<S as State>::OutputType: IsUnset,
Required.
Response content type (e.g., "json", "text").
Sourcepub fn format(
self,
value: impl Into<String>,
) -> BazaarOutputBuilder<SetFormat<S>>where
<S as State>::Format: IsUnset,
pub fn format(
self,
value: impl Into<String>,
) -> BazaarOutputBuilder<SetFormat<S>>where
<S as State>::Format: IsUnset,
Sourcepub fn maybe_format(
self,
value: Option<impl Into<String>>,
) -> BazaarOutputBuilder<SetFormat<S>>where
<S as State>::Format: IsUnset,
pub fn maybe_format(
self,
value: Option<impl Into<String>>,
) -> BazaarOutputBuilder<SetFormat<S>>where
<S as State>::Format: IsUnset,
Sourcepub fn example(self, value: Value) -> BazaarOutputBuilder<SetExample<S>>where
<S as State>::Example: IsUnset,
pub fn example(self, value: Value) -> BazaarOutputBuilder<SetExample<S>>where
<S as State>::Example: IsUnset,
Sourcepub fn maybe_example(
self,
value: Option<Value>,
) -> BazaarOutputBuilder<SetExample<S>>where
<S as State>::Example: IsUnset,
pub fn maybe_example(
self,
value: Option<Value>,
) -> BazaarOutputBuilder<SetExample<S>>where
<S as State>::Example: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for BazaarOutputBuilder<S>
impl<S> RefUnwindSafe for BazaarOutputBuilder<S>
impl<S> Send for BazaarOutputBuilder<S>
impl<S> Sync for BazaarOutputBuilder<S>
impl<S> Unpin for BazaarOutputBuilder<S>
impl<S> UnsafeUnpin for BazaarOutputBuilder<S>
impl<S> UnwindSafe for BazaarOutputBuilder<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