pub struct PatchSubscriptionRequest {
pub status: Option<SubscriptionStatus>,
pub config: Option<SubscriptionConfig>,
pub extra: Option<Value>,
/* private fields */
}Expand description
更新订阅状态请求
Fields§
§status: Option<SubscriptionStatus>订阅状态
config: Option<SubscriptionConfig>订阅配置
extra: Option<Value>扩展信息
Implementations§
Source§impl PatchSubscriptionRequest
impl PatchSubscriptionRequest
Sourcepub fn has_status_change(&self) -> bool
pub fn has_status_change(&self) -> bool
是否有状态更改
Sourcepub fn has_config_change(&self) -> bool
pub fn has_config_change(&self) -> bool
是否有配置更改
Sourcepub fn has_changes(&self) -> bool
pub fn has_changes(&self) -> bool
是否有任何更改
Trait Implementations§
Source§impl Clone for PatchSubscriptionRequest
impl Clone for PatchSubscriptionRequest
Source§fn clone(&self) -> PatchSubscriptionRequest
fn clone(&self) -> PatchSubscriptionRequest
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 moreSource§impl Debug for PatchSubscriptionRequest
impl Debug for PatchSubscriptionRequest
Source§impl Default for PatchSubscriptionRequest
impl Default for PatchSubscriptionRequest
Source§fn default() -> PatchSubscriptionRequest
fn default() -> PatchSubscriptionRequest
Returns the “default value” for a type. 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 PatchSubscriptionRequest
impl RefUnwindSafe for PatchSubscriptionRequest
impl Send for PatchSubscriptionRequest
impl Sync for PatchSubscriptionRequest
impl Unpin for PatchSubscriptionRequest
impl UnwindSafe for PatchSubscriptionRequest
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