pub struct RunDocumentBuilder<T>{
pub path: Option<String>,
pub parameters: Option<T>,
pub stream: Option<bool>,
pub options: Option<Options>,
}
Expand description
A builder for creating RunDocument
instances.
This builder allows you to set optional fields, such as parameters
, before building
the RunDocument
instance. By default, if parameters
is not set, it will use T::default()
.
Fields§
§path: Option<String>
§parameters: Option<T>
§stream: Option<bool>
§options: Option<Options>
Implementations§
Source§impl<T> RunDocumentBuilder<T>
impl<T> RunDocumentBuilder<T>
Sourcepub fn parameters(self, parameters: T) -> Self
pub fn parameters(self, parameters: T) -> Self
Sets the optional parameters for the RunDocument
.
§Arguments
parameters
- Optional parameters for the document.
Sourcepub fn stream(self) -> Self
pub fn stream(self) -> Self
Sets the stream options for the RunDocument
.
§Arguments
stream
- Boolean indicating if the response should be streamed.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RunDocumentBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for RunDocumentBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for RunDocumentBuilder<T>where
T: Send,
impl<T> Sync for RunDocumentBuilder<T>where
T: Sync,
impl<T> Unpin for RunDocumentBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for RunDocumentBuilder<T>where
T: 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