pub struct DocumentOperations { /* private fields */ }Expand description
The document-operations endpoints. Get it with Wellfriend::document_operations.
Implementations§
Source§impl DocumentOperations
impl DocumentOperations
Sourcepub async fn wait(&self, operation_id: &str) -> Result<ToolResult>
pub async fn wait(&self, operation_id: &str) -> Result<ToolResult>
Waits for an operation started earlier (for example with
Tools::start) and returns its result.
Fails with Error::OperationFailed when the operation fails or is cancelled, and with
Error::WaitTimeout when it is still running at the wait limit.
Source§impl DocumentOperations
impl DocumentOperations
Sourcepub fn with_options(self, options: RequestOptions) -> Self
pub fn with_options(self, options: RequestOptions) -> Self
The same handle with these options for every call made through it.
Sourcepub async fn create(
&self,
body: DocumentOperationsCreateRequest,
) -> Result<Operation>
pub async fn create( &self, body: DocumentOperationsCreateRequest, ) -> Result<Operation>
Run an operation against an immutable version
POST /api/v2/document-operations
Sourcepub async fn get(&self, operation_id: &str) -> Result<Operation>
pub async fn get(&self, operation_id: &str) -> Result<Operation>
Inspect a document operation
GET /api/v2/document-operations/{operationId}
Sourcepub async fn outputs(&self, operation_id: &str) -> Result<OperationOutputs>
pub async fn outputs(&self, operation_id: &str) -> Result<OperationOutputs>
List the parts of an operation’s output
GET /api/v2/document-operations/{operationId}/outputs
Trait Implementations§
Source§impl Clone for DocumentOperations
impl Clone for DocumentOperations
Auto Trait Implementations§
impl !RefUnwindSafe for DocumentOperations
impl !UnwindSafe for DocumentOperations
impl Forget for DocumentOperations
impl Freeze for DocumentOperations
impl Move for DocumentOperations
impl Send for DocumentOperations
impl Sync for DocumentOperations
impl Unpin for DocumentOperations
impl UnsafeUnpin for DocumentOperations
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