pub struct CreateSubscriptionResponse {
pub subscription: SubscriptionDetail,
pub file_token: String,
pub file_type: String,
pub create_time: Option<i64>,
pub subscription_id: Option<String>,
}Expand description
创建订阅响应
Fields§
§subscription: SubscriptionDetail订阅详情
file_token: String文档token
file_type: String文档类型
create_time: Option<i64>创建时间
subscription_id: Option<String>订阅ID
Implementations§
Source§impl CreateSubscriptionResponse
impl CreateSubscriptionResponse
Sourcepub fn file_type_enum(&self) -> FileType
pub fn file_type_enum(&self) -> FileType
获取文档类型枚举
Sourcepub fn create_time_formatted(&self) -> Option<String>
pub fn create_time_formatted(&self) -> Option<String>
获取创建时间格式化字符串
Sourcepub fn info_summary(&self) -> String
pub fn info_summary(&self) -> String
获取完整信息摘要
Trait Implementations§
Source§impl ApiResponseTrait for CreateSubscriptionResponse
impl ApiResponseTrait for CreateSubscriptionResponse
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 CreateSubscriptionResponse
impl Debug for CreateSubscriptionResponse
Source§impl<'de> Deserialize<'de> for CreateSubscriptionResponse
impl<'de> Deserialize<'de> for CreateSubscriptionResponse
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, 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,
带选项执行请求
Auto Trait Implementations§
impl Freeze for CreateSubscriptionResponse
impl RefUnwindSafe for CreateSubscriptionResponse
impl Send for CreateSubscriptionResponse
impl Sync for CreateSubscriptionResponse
impl Unpin for CreateSubscriptionResponse
impl UnwindSafe for CreateSubscriptionResponse
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