pub struct RunDocument<T>where
T: Serialize,{
pub path: String,
pub parameters: Option<T>,
pub stream: bool,
pub options: Option<Options>,
}
Expand description
RunDocument
represents a document request with specific parameters.
The parameters
field is optional, allowing for requests without parameters.
Fields§
§path: String
§parameters: Option<T>
§stream: bool
§options: Option<Options>
Implementations§
Source§impl<T> RunDocument<T>
impl<T> RunDocument<T>
Sourcepub fn new(
path: String,
parameters: Option<T>,
stream: bool,
options: Option<Options>,
) -> Self
pub fn new( path: String, parameters: Option<T>, stream: bool, options: Option<Options>, ) -> Self
Creates a new RunDocument
with the specified path, parameters, and stream options.
§Arguments
path
- The path of the document to be run.parameters
- Optional parameters for the document.stream
- Boolean indicating if the response should be streamed.
pub fn builder() -> RunDocumentBuilder<T>
Trait Implementations§
Source§impl<T> Debug for RunDocument<T>
impl<T> Debug for RunDocument<T>
Source§impl<'de, T> Deserialize<'de> for RunDocument<T>where
T: Serialize + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for RunDocument<T>where
T: Serialize + Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T> Freeze for RunDocument<T>where
T: Freeze,
impl<T> RefUnwindSafe for RunDocument<T>where
T: RefUnwindSafe,
impl<T> Send for RunDocument<T>where
T: Send,
impl<T> Sync for RunDocument<T>where
T: Sync,
impl<T> Unpin for RunDocument<T>where
T: Unpin,
impl<T> UnwindSafe for RunDocument<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