pub struct DeleteSubscriptionRequest {
pub external_id: String,
pub status: Option<String>,
}Expand description
Request for deleting a subscription.
Fields§
§external_id: StringThe external unique identifier of the subscription to delete.
status: Option<String>Optional status to set the subscription to (defaults to terminated).
Implementations§
Source§impl DeleteSubscriptionRequest
impl DeleteSubscriptionRequest
Sourcepub fn with_status(self, status: String) -> Self
pub fn with_status(self, status: String) -> Self
Sets the target status for the subscription.
Sourcepub fn to_query_params(&self) -> Vec<(&str, String)>
pub fn to_query_params(&self) -> Vec<(&str, String)>
Converts the request parameters into HTTP query parameters.
Trait Implementations§
Source§impl Clone for DeleteSubscriptionRequest
impl Clone for DeleteSubscriptionRequest
Source§fn clone(&self) -> DeleteSubscriptionRequest
fn clone(&self) -> DeleteSubscriptionRequest
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 moreAuto Trait Implementations§
impl Freeze for DeleteSubscriptionRequest
impl RefUnwindSafe for DeleteSubscriptionRequest
impl Send for DeleteSubscriptionRequest
impl Sync for DeleteSubscriptionRequest
impl Unpin for DeleteSubscriptionRequest
impl UnwindSafe for DeleteSubscriptionRequest
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