pub struct FileVersionService { /* private fields */ }Expand description
文档版本服务
Implementations§
Source§impl FileVersionService
impl FileVersionService
pub fn new(config: Config) -> Self
Sourcepub async fn create_version(
&self,
request: CreateVersionRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<CreateVersionRespData>>
pub async fn create_version( &self, request: CreateVersionRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<CreateVersionRespData>>
Sourcepub async fn delete_version(
&self,
request: DeleteVersionRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<DeleteVersionRespData>>
pub async fn delete_version( &self, request: DeleteVersionRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<DeleteVersionRespData>>
Sourcepub async fn get_version(
&self,
request: GetVersionRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<GetVersionRespData>>
pub async fn get_version( &self, request: GetVersionRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<GetVersionRespData>>
Sourcepub async fn list_versions(
&self,
request: ListVersionsRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<ListVersionsRespData>>
pub async fn list_versions( &self, request: ListVersionsRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<ListVersionsRespData>>
获取文档版本列表
该接口用于获取文档的版本列表。
https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-version/list
Trait Implementations§
Source§impl ExecutableBuilder<FileVersionService, CreateVersionRequest, BaseResponse<CreateVersionRespData>> for CreateVersionRequestBuilder
impl ExecutableBuilder<FileVersionService, CreateVersionRequest, BaseResponse<CreateVersionRespData>> for CreateVersionRequestBuilder
Source§fn build(self) -> CreateVersionRequest
fn build(self) -> CreateVersionRequest
构建请求对象
Source§fn execute<'life0, 'async_trait>(
self,
service: &'life0 FileVersionService,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<CreateVersionRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
self,
service: &'life0 FileVersionService,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<CreateVersionRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
执行请求并返回响应
Source§fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 FileVersionService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<CreateVersionRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 FileVersionService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<CreateVersionRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
带选项执行请求
Source§impl ExecutableBuilder<FileVersionService, DeleteVersionRequest, BaseResponse<DeleteVersionRespData>> for DeleteVersionRequestBuilder
impl ExecutableBuilder<FileVersionService, DeleteVersionRequest, BaseResponse<DeleteVersionRespData>> for DeleteVersionRequestBuilder
Source§fn build(self) -> DeleteVersionRequest
fn build(self) -> DeleteVersionRequest
构建请求对象
Source§fn execute<'life0, 'async_trait>(
self,
service: &'life0 FileVersionService,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<DeleteVersionRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
self,
service: &'life0 FileVersionService,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<DeleteVersionRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
执行请求并返回响应
Source§fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 FileVersionService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<DeleteVersionRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 FileVersionService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<DeleteVersionRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
带选项执行请求
Source§impl ExecutableBuilder<FileVersionService, GetVersionRequest, BaseResponse<GetVersionRespData>> for GetVersionRequestBuilder
impl ExecutableBuilder<FileVersionService, GetVersionRequest, BaseResponse<GetVersionRespData>> for GetVersionRequestBuilder
Source§fn build(self) -> GetVersionRequest
fn build(self) -> GetVersionRequest
构建请求对象
Source§fn execute<'life0, 'async_trait>(
self,
service: &'life0 FileVersionService,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<GetVersionRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
self,
service: &'life0 FileVersionService,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<GetVersionRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
执行请求并返回响应
Source§fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 FileVersionService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<GetVersionRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 FileVersionService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<GetVersionRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
带选项执行请求
Source§impl ExecutableBuilder<FileVersionService, ListVersionsRequest, BaseResponse<ListVersionsRespData>> for ListVersionsRequestBuilder
impl ExecutableBuilder<FileVersionService, ListVersionsRequest, BaseResponse<ListVersionsRespData>> for ListVersionsRequestBuilder
Source§fn build(self) -> ListVersionsRequest
fn build(self) -> ListVersionsRequest
构建请求对象
Source§fn execute<'life0, 'async_trait>(
self,
service: &'life0 FileVersionService,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<ListVersionsRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
self,
service: &'life0 FileVersionService,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<ListVersionsRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
执行请求并返回响应
Source§fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 FileVersionService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<ListVersionsRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 FileVersionService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<BaseResponse<ListVersionsRespData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
带选项执行请求
Auto Trait Implementations§
impl Freeze for FileVersionService
impl !RefUnwindSafe for FileVersionService
impl Send for FileVersionService
impl Sync for FileVersionService
impl Unpin for FileVersionService
impl !UnwindSafe for FileVersionService
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