#[non_exhaustive]pub struct DeleteEventSubSubscriptionRequest<'a> {
pub id: Cow<'a, EventSubIdRef>,
}
Available on crate features
helix
and eventsub
only.Expand description
Query Parameters for Delete EventSub Subscriptions
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: Cow<'a, EventSubIdRef>
The subscription ID for the subscription you want to delete.
Implementations
sourceimpl<'a> DeleteEventSubSubscriptionRequest<'a>
impl<'a> DeleteEventSubSubscriptionRequest<'a>
sourceimpl<'a> DeleteEventSubSubscriptionRequest<'a>
impl<'a> DeleteEventSubSubscriptionRequest<'a>
sourcepub fn id(id: impl IntoCow<'a, EventSubIdRef> + 'a) -> Self
pub fn id(id: impl IntoCow<'a, EventSubIdRef> + 'a) -> Self
Delete this eventsub subscription.
Trait Implementations
sourceimpl<'a> Clone for DeleteEventSubSubscriptionRequest<'a>
impl<'a> Clone for DeleteEventSubSubscriptionRequest<'a>
sourcefn clone(&self) -> DeleteEventSubSubscriptionRequest<'a>
fn clone(&self) -> DeleteEventSubSubscriptionRequest<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for DeleteEventSubSubscriptionRequest<'a>
impl<'a> Debug for DeleteEventSubSubscriptionRequest<'a>
sourceimpl<'a> PartialEq<DeleteEventSubSubscriptionRequest<'a>> for DeleteEventSubSubscriptionRequest<'a>
impl<'a> PartialEq<DeleteEventSubSubscriptionRequest<'a>> for DeleteEventSubSubscriptionRequest<'a>
sourcefn eq(&self, other: &DeleteEventSubSubscriptionRequest<'a>) -> bool
fn eq(&self, other: &DeleteEventSubSubscriptionRequest<'a>) -> bool
sourceimpl Request for DeleteEventSubSubscriptionRequest<'_>
impl Request for DeleteEventSubSubscriptionRequest<'_>
type Response = DeleteEventSubSubscription
type Response = DeleteEventSubSubscription
Available on crate feature
helix
only.Response type. twitch’s response will deserialize to this.
sourceconst PATH: &'static str = "eventsub/subscriptions"
const PATH: &'static str = "eventsub/subscriptions"
Available on crate feature
helix
only.The path to the endpoint relative to the helix root. eg.
channels
for Get Channel Informationsourceconst SCOPE: &'static [Scope] = _
const SCOPE: &'static [Scope] = _
Available on crate features
helix
and twitch_oauth2
only.Scopes needed by this endpoint
sourceconst OPT_SCOPE: &'static [Scope] = _
const OPT_SCOPE: &'static [Scope] = _
Available on crate features
helix
and twitch_oauth2
only.Optional scopes needed by this endpoint
sourcefn query(&self) -> Result<String, SerializeError>
fn query(&self) -> Result<String, SerializeError>
Available on crate feature
helix
only.Defines layout of the url parameters.
sourcefn get_uri(&self) -> Result<Uri, InvalidUri>
fn get_uri(&self) -> Result<Uri, InvalidUri>
Available on crate feature
helix
only.Returns full URI for the request, including query parameters.
sourcefn get_bare_uri() -> Result<Uri, InvalidUri>
fn get_bare_uri() -> Result<Uri, InvalidUri>
Available on crate feature
helix
only.Returns bare URI for the request, NOT including query parameters.
sourceimpl RequestDelete for DeleteEventSubSubscriptionRequest<'_>
impl RequestDelete for DeleteEventSubSubscriptionRequest<'_>
sourcefn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestDeleteError>where
Self: Sized,
fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode
) -> Result<Response<Self, Self::Response>, HelixRequestDeleteError>where
Self: Sized,
Available on crate feature
helix
only.Parse a response string into the response.
sourcefn create_request(
&self,
token: &str,
client_id: &str
) -> Result<Request<Bytes>, CreateRequestError>
fn create_request(
&self,
token: &str,
client_id: &str
) -> Result<Request<Bytes>, CreateRequestError>
Available on crate feature
helix
only.Create a
http::Request
from this Request
in your clientsourceimpl<'a> Serialize for DeleteEventSubSubscriptionRequest<'a>
impl<'a> Serialize for DeleteEventSubSubscriptionRequest<'a>
impl<'a> Eq for DeleteEventSubSubscriptionRequest<'a>
impl<'a> StructuralEq for DeleteEventSubSubscriptionRequest<'a>
impl<'a> StructuralPartialEq for DeleteEventSubSubscriptionRequest<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for DeleteEventSubSubscriptionRequest<'a>
impl<'a> Send for DeleteEventSubSubscriptionRequest<'a>
impl<'a> Sync for DeleteEventSubSubscriptionRequest<'a>
impl<'a> Unpin for DeleteEventSubSubscriptionRequest<'a>
impl<'a> UnwindSafe for DeleteEventSubSubscriptionRequest<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.