pub struct PatchSubscriptionResponse {
pub subscription: SubscriptionDetail,
pub file_token: String,
pub file_type: String,
pub update_time: Option<i64>,
pub subscription_id: Option<String>,
pub updated_fields: Option<Vec<String>>,
}Expand description
更新订阅状态响应
Fields§
§subscription: SubscriptionDetail订阅详情
file_token: String文档token
file_type: String文档类型
update_time: Option<i64>更新时间
subscription_id: Option<String>订阅ID
updated_fields: Option<Vec<String>>更新的字段
Implementations§
Source§impl PatchSubscriptionResponse
impl PatchSubscriptionResponse
Sourcepub fn file_type_enum(&self) -> FileType
pub fn file_type_enum(&self) -> FileType
获取文档类型枚举
Sourcepub fn update_time_formatted(&self) -> Option<String>
pub fn update_time_formatted(&self) -> Option<String>
获取更新时间格式化字符串
Sourcepub fn get_updated_fields(&self) -> Vec<String>
pub fn get_updated_fields(&self) -> Vec<String>
获取更新字段列表
Sourcepub fn info_summary(&self) -> String
pub fn info_summary(&self) -> String
获取完整信息摘要
Sourcepub fn is_updated(&self) -> bool
pub fn is_updated(&self) -> bool
是否更新成功
Trait Implementations§
Source§impl ApiResponseTrait for PatchSubscriptionResponse
impl ApiResponseTrait for PatchSubscriptionResponse
Source§fn data_format() -> ResponseFormat
fn data_format() -> ResponseFormat
是否是标准数据格式, 既是用data包裹数据
fn from_binary(_file_name: String, _body: Vec<u8>) -> Option<Self>
Source§impl Debug for PatchSubscriptionResponse
impl Debug for PatchSubscriptionResponse
Source§impl<'de> Deserialize<'de> for PatchSubscriptionResponse
impl<'de> Deserialize<'de> for PatchSubscriptionResponse
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
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 PatchSubscriptionResponse
impl RefUnwindSafe for PatchSubscriptionResponse
impl Send for PatchSubscriptionResponse
impl Sync for PatchSubscriptionResponse
impl Unpin for PatchSubscriptionResponse
impl UnwindSafe for PatchSubscriptionResponse
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