pub struct SubscriptionService { /* private fields */ }Expand description
订阅服务
Implementations§
Source§impl SubscriptionService
impl SubscriptionService
pub fn new(config: Config) -> Self
Sourcepub async fn get(
&self,
request: GetSubscriptionRequest,
option: Option<RequestOption>,
) -> SDKResult<GetSubscriptionResponse>
pub async fn get( &self, request: GetSubscriptionRequest, option: Option<RequestOption>, ) -> SDKResult<GetSubscriptionResponse>
获取订阅状态
Sourcepub async fn create(
&self,
request: CreateSubscriptionRequest,
option: Option<RequestOption>,
) -> SDKResult<CreateSubscriptionResponse>
pub async fn create( &self, request: CreateSubscriptionRequest, option: Option<RequestOption>, ) -> SDKResult<CreateSubscriptionResponse>
创建订阅
Sourcepub async fn patch(
&self,
request: PatchSubscriptionRequest,
option: Option<RequestOption>,
) -> SDKResult<PatchSubscriptionResponse>
pub async fn patch( &self, request: PatchSubscriptionRequest, option: Option<RequestOption>, ) -> SDKResult<PatchSubscriptionResponse>
更新订阅状态
Sourcepub async fn quick_subscribe_doc(
&self,
file_token: impl ToString,
option: Option<RequestOption>,
) -> SDKResult<CreateSubscriptionResponse>
pub async fn quick_subscribe_doc( &self, file_token: impl ToString, option: Option<RequestOption>, ) -> SDKResult<CreateSubscriptionResponse>
快速订阅文档(基础配置)
Sourcepub async fn quick_subscribe_bitable(
&self,
file_token: impl ToString,
option: Option<RequestOption>,
) -> SDKResult<CreateSubscriptionResponse>
pub async fn quick_subscribe_bitable( &self, file_token: impl ToString, option: Option<RequestOption>, ) -> SDKResult<CreateSubscriptionResponse>
快速订阅多维表格(高级配置)
Sourcepub async fn quick_subscribe_sheet(
&self,
file_token: impl ToString,
option: Option<RequestOption>,
) -> SDKResult<CreateSubscriptionResponse>
pub async fn quick_subscribe_sheet( &self, file_token: impl ToString, option: Option<RequestOption>, ) -> SDKResult<CreateSubscriptionResponse>
快速订阅表格(基础配置)
Sourcepub async fn quick_subscribe_wiki(
&self,
file_token: impl ToString,
option: Option<RequestOption>,
) -> SDKResult<CreateSubscriptionResponse>
pub async fn quick_subscribe_wiki( &self, file_token: impl ToString, option: Option<RequestOption>, ) -> SDKResult<CreateSubscriptionResponse>
快速订阅Wiki(基础配置)
Sourcepub async fn activate(
&self,
file_token: impl ToString,
file_type: FileType,
option: Option<RequestOption>,
) -> SDKResult<PatchSubscriptionResponse>
pub async fn activate( &self, file_token: impl ToString, file_type: FileType, option: Option<RequestOption>, ) -> SDKResult<PatchSubscriptionResponse>
激活订阅
Sourcepub async fn pause(
&self,
file_token: impl ToString,
file_type: FileType,
option: Option<RequestOption>,
) -> SDKResult<PatchSubscriptionResponse>
pub async fn pause( &self, file_token: impl ToString, file_type: FileType, option: Option<RequestOption>, ) -> SDKResult<PatchSubscriptionResponse>
暂停订阅
Sourcepub async fn cancel(
&self,
file_token: impl ToString,
file_type: FileType,
option: Option<RequestOption>,
) -> SDKResult<PatchSubscriptionResponse>
pub async fn cancel( &self, file_token: impl ToString, file_type: FileType, option: Option<RequestOption>, ) -> SDKResult<PatchSubscriptionResponse>
取消订阅
Sourcepub async fn quick_activate(
&self,
file_token: impl ToString,
file_type: FileType,
option: Option<RequestOption>,
) -> SDKResult<PatchSubscriptionResponse>
pub async fn quick_activate( &self, file_token: impl ToString, file_type: FileType, option: Option<RequestOption>, ) -> SDKResult<PatchSubscriptionResponse>
快速激活订阅(高频模式)
Sourcepub async fn eco_activate(
&self,
file_token: impl ToString,
file_type: FileType,
option: Option<RequestOption>,
) -> SDKResult<PatchSubscriptionResponse>
pub async fn eco_activate( &self, file_token: impl ToString, file_type: FileType, option: Option<RequestOption>, ) -> SDKResult<PatchSubscriptionResponse>
节能模式激活订阅(低频模式)
Sourcepub async fn safe_pause(
&self,
file_token: impl ToString,
file_type: FileType,
option: Option<RequestOption>,
) -> SDKResult<PatchSubscriptionResponse>
pub async fn safe_pause( &self, file_token: impl ToString, file_type: FileType, option: Option<RequestOption>, ) -> SDKResult<PatchSubscriptionResponse>
安全暂停订阅(附加系统标签)
Sourcepub async fn is_subscribed(
&self,
file_token: impl ToString,
file_type: FileType,
option: Option<RequestOption>,
) -> SDKResult<bool>
pub async fn is_subscribed( &self, file_token: impl ToString, file_type: FileType, option: Option<RequestOption>, ) -> SDKResult<bool>
检查订阅状态并返回是否已订阅
Sourcepub async fn batch_subscribe(
&self,
files: Vec<(String, FileType)>,
option: Option<RequestOption>,
) -> Vec<SDKResult<CreateSubscriptionResponse>> ⓘ
pub async fn batch_subscribe( &self, files: Vec<(String, FileType)>, option: Option<RequestOption>, ) -> Vec<SDKResult<CreateSubscriptionResponse>> ⓘ
批量管理订阅 - 订阅多个文档
Trait Implementations§
Source§impl ExecutableBuilder<SubscriptionService, CreateSubscriptionRequest, CreateSubscriptionResponse> for CreateSubscriptionRequestBuilder
impl ExecutableBuilder<SubscriptionService, CreateSubscriptionRequest, CreateSubscriptionResponse> for CreateSubscriptionRequestBuilder
Source§fn build(self) -> CreateSubscriptionRequest
fn build(self) -> CreateSubscriptionRequest
构建请求对象
Source§fn execute<'life0, 'async_trait>(
self,
service: &'life0 SubscriptionService,
) -> Pin<Box<dyn Future<Output = SDKResult<CreateSubscriptionResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
self,
service: &'life0 SubscriptionService,
) -> Pin<Box<dyn Future<Output = SDKResult<CreateSubscriptionResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
执行请求并返回响应
Source§fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 SubscriptionService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<CreateSubscriptionResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 SubscriptionService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<CreateSubscriptionResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
带选项执行请求
Source§impl ExecutableBuilder<SubscriptionService, GetSubscriptionRequest, GetSubscriptionResponse> for GetSubscriptionRequestBuilder
impl ExecutableBuilder<SubscriptionService, GetSubscriptionRequest, GetSubscriptionResponse> for GetSubscriptionRequestBuilder
Source§fn build(self) -> GetSubscriptionRequest
fn build(self) -> GetSubscriptionRequest
构建请求对象
Source§fn execute<'life0, 'async_trait>(
self,
service: &'life0 SubscriptionService,
) -> Pin<Box<dyn Future<Output = SDKResult<GetSubscriptionResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
self,
service: &'life0 SubscriptionService,
) -> Pin<Box<dyn Future<Output = SDKResult<GetSubscriptionResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
执行请求并返回响应
Source§fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 SubscriptionService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<GetSubscriptionResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 SubscriptionService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<GetSubscriptionResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
带选项执行请求
Source§impl ExecutableBuilder<SubscriptionService, PatchSubscriptionRequest, PatchSubscriptionResponse> for PatchSubscriptionRequestBuilder
impl ExecutableBuilder<SubscriptionService, PatchSubscriptionRequest, PatchSubscriptionResponse> for PatchSubscriptionRequestBuilder
Source§fn build(self) -> PatchSubscriptionRequest
fn build(self) -> PatchSubscriptionRequest
构建请求对象
Source§fn execute<'life0, 'async_trait>(
self,
service: &'life0 SubscriptionService,
) -> Pin<Box<dyn Future<Output = SDKResult<PatchSubscriptionResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
self,
service: &'life0 SubscriptionService,
) -> Pin<Box<dyn Future<Output = SDKResult<PatchSubscriptionResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
执行请求并返回响应
Source§fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 SubscriptionService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<PatchSubscriptionResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_with_options<'life0, 'async_trait>(
self,
service: &'life0 SubscriptionService,
option: RequestOption,
) -> Pin<Box<dyn Future<Output = SDKResult<PatchSubscriptionResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
带选项执行请求
Auto Trait Implementations§
impl Freeze for SubscriptionService
impl !RefUnwindSafe for SubscriptionService
impl Send for SubscriptionService
impl Sync for SubscriptionService
impl Unpin for SubscriptionService
impl !UnwindSafe for SubscriptionService
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