pub struct Operations { /* private fields */ }Implementations§
Source§impl Operations
impl Operations
Sourcepub async fn get_operation(&self, operation: Operation) -> Result<Operation>
pub async fn get_operation(&self, operation: Operation) -> Result<Operation>
Sourcepub async fn get_operation_with_config(
&self,
operation: Operation,
config: GetOperationConfig,
) -> Result<Operation>
pub async fn get_operation_with_config( &self, operation: Operation, config: GetOperationConfig, ) -> Result<Operation>
Sourcepub async fn get_with_config(
&self,
name: impl AsRef<str>,
config: GetOperationConfig,
) -> Result<Operation>
pub async fn get_with_config( &self, name: impl AsRef<str>, config: GetOperationConfig, ) -> Result<Operation>
Sourcepub async fn list(&self) -> Result<ListOperationsResponse>
pub async fn list(&self) -> Result<ListOperationsResponse>
Sourcepub async fn list_with_config(
&self,
config: ListOperationsConfig,
) -> Result<ListOperationsResponse>
pub async fn list_with_config( &self, config: ListOperationsConfig, ) -> Result<ListOperationsResponse>
Sourcepub async fn all_with_config(
&self,
config: ListOperationsConfig,
) -> Result<Vec<Operation>>
pub async fn all_with_config( &self, config: ListOperationsConfig, ) -> Result<Vec<Operation>>
Sourcepub async fn get_generate_videos_operation(
&self,
operation: GenerateVideosOperation,
) -> Result<GenerateVideosOperation>
pub async fn get_generate_videos_operation( &self, operation: GenerateVideosOperation, ) -> Result<GenerateVideosOperation>
获取 GenerateVideos 操作状态。
Vertex AI 后端会优先使用 :fetchPredictOperation 轮询视频生成操作。
§Errors
当请求失败、操作缺少名称或响应解析失败时返回错误。
Sourcepub async fn get_generate_videos_operation_with_config(
&self,
operation: GenerateVideosOperation,
config: GetOperationConfig,
) -> Result<GenerateVideosOperation>
pub async fn get_generate_videos_operation_with_config( &self, operation: GenerateVideosOperation, config: GetOperationConfig, ) -> Result<GenerateVideosOperation>
Sourcepub async fn wait_generate_videos_operation(
&self,
operation: GenerateVideosOperation,
) -> Result<GenerateVideosOperation>
pub async fn wait_generate_videos_operation( &self, operation: GenerateVideosOperation, ) -> Result<GenerateVideosOperation>
Sourcepub async fn get_upload_to_file_search_store_operation(
&self,
operation: UploadToFileSearchStoreOperation,
) -> Result<UploadToFileSearchStoreOperation>
pub async fn get_upload_to_file_search_store_operation( &self, operation: UploadToFileSearchStoreOperation, ) -> Result<UploadToFileSearchStoreOperation>
Sourcepub async fn get_upload_to_file_search_store_operation_with_config(
&self,
operation: UploadToFileSearchStoreOperation,
config: GetOperationConfig,
) -> Result<UploadToFileSearchStoreOperation>
pub async fn get_upload_to_file_search_store_operation_with_config( &self, operation: UploadToFileSearchStoreOperation, config: GetOperationConfig, ) -> Result<UploadToFileSearchStoreOperation>
Sourcepub async fn wait_upload_to_file_search_store_operation(
&self,
operation: UploadToFileSearchStoreOperation,
) -> Result<UploadToFileSearchStoreOperation>
pub async fn wait_upload_to_file_search_store_operation( &self, operation: UploadToFileSearchStoreOperation, ) -> Result<UploadToFileSearchStoreOperation>
Sourcepub async fn get_import_file_operation(
&self,
operation: ImportFileOperation,
) -> Result<ImportFileOperation>
pub async fn get_import_file_operation( &self, operation: ImportFileOperation, ) -> Result<ImportFileOperation>
Sourcepub async fn get_import_file_operation_with_config(
&self,
operation: ImportFileOperation,
config: GetOperationConfig,
) -> Result<ImportFileOperation>
pub async fn get_import_file_operation_with_config( &self, operation: ImportFileOperation, config: GetOperationConfig, ) -> Result<ImportFileOperation>
Sourcepub async fn wait_import_file_operation(
&self,
operation: ImportFileOperation,
) -> Result<ImportFileOperation>
pub async fn wait_import_file_operation( &self, operation: ImportFileOperation, ) -> Result<ImportFileOperation>
Trait Implementations§
Source§impl Clone for Operations
impl Clone for Operations
Source§fn clone(&self) -> Operations
fn clone(&self) -> Operations
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Operations
impl !RefUnwindSafe for Operations
impl Send for Operations
impl Sync for Operations
impl Unpin for Operations
impl UnsafeUnpin for Operations
impl !UnwindSafe for Operations
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