pub trait RequestPatch: Request {
type Body: HelixRequestBody;
// Required method
fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode,
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestPatchError>
where Self: Sized;
// Provided methods
fn create_request(
&self,
body: Self::Body,
token: &str,
client_id: &str,
) -> Result<Request<Bytes>, CreateRequestError> { ... }
fn parse_response<B: Into<Bytes>>(
request: Option<Self>,
uri: &Uri,
response: Response<B>,
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestPatchError>
where Self: Sized { ... }
}
Available on crate feature
helix
only.Expand description
Helix endpoint PATCHs information
Required Associated Types§
Sourcetype Body: HelixRequestBody
type Body: HelixRequestBody
Body parameters
Required Methods§
Sourcefn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode,
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestPatchError>where
Self: Sized,
fn parse_inner_response(
request: Option<Self>,
uri: &Uri,
response: &str,
status: StatusCode,
) -> Result<Response<Self, <Self as Request>::Response>, HelixRequestPatchError>where
Self: Sized,
Parse a response string into the response.
Provided Methods§
Sourcefn create_request(
&self,
body: Self::Body,
token: &str,
client_id: &str,
) -> Result<Request<Bytes>, CreateRequestError>
fn create_request( &self, body: Self::Body, token: &str, client_id: &str, ) -> Result<Request<Bytes>, CreateRequestError>
Create a http::Request
from this Request
in your client
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl RequestPatch for UpdateChatSettingsRequest<'_>
impl RequestPatch for UpdateChatSettingsRequest<'_>
Source§impl RequestPatch for ResolveUnbanRequest<'_>
impl RequestPatch for ResolveUnbanRequest<'_>
Source§impl RequestPatch for UpdateRedemptionStatusRequest<'_>
impl RequestPatch for UpdateRedemptionStatusRequest<'_>
Source§impl RequestPatch for UpdateChannelStreamScheduleRequest<'_>
impl RequestPatch for UpdateChannelStreamScheduleRequest<'_>
Source§impl<'a> RequestPatch for ModifyChannelInformationRequest<'a>
impl<'a> RequestPatch for ModifyChannelInformationRequest<'a>
type Body = ModifyChannelInformationBody<'a>
Source§impl<'a> RequestPatch for UpdateConduitRequest<'a>
Available on crate feature eventsub
only.
impl<'a> RequestPatch for UpdateConduitRequest<'a>
Available on crate feature
eventsub
only.type Body = UpdateConduitBody<'a>
Source§impl<'a> RequestPatch for UpdateConduitShardsRequest<'a>
Available on crate feature eventsub
only.
impl<'a> RequestPatch for UpdateConduitShardsRequest<'a>
Available on crate feature
eventsub
only.