Trait twitch_api::helix::HelixRequestBody
source · [−]pub trait HelixRequestBody {
fn try_to_body(&self) -> Result<Bytes, BodyError>;
}
Available on crate feature
helix
only.Expand description
Create a body. Used for specializing request bodies
Required Methods
sourcefn try_to_body(&self) -> Result<Bytes, BodyError>
fn try_to_body(&self) -> Result<Bytes, BodyError>
Create the body
Implementations on Foreign Types
sourceimpl HelixRequestBody for Vec<SendChatAnnouncementBody>
impl HelixRequestBody for Vec<SendChatAnnouncementBody>
fn try_to_body(&self) -> Result<Bytes, BodyError>
sourceimpl HelixRequestBody for Vec<AddBlockedTermBody>
impl HelixRequestBody for Vec<AddBlockedTermBody>
fn try_to_body(&self) -> Result<Bytes, BodyError>
sourceimpl HelixRequestBody for Vec<CheckAutoModStatusBody>
impl HelixRequestBody for Vec<CheckAutoModStatusBody>
fn try_to_body(&self) -> Result<Bytes, BodyError>
Implementors
impl HelixRequestBody for BanUserBody
impl HelixRequestBody for EmptyBody
impl<E: EventSubscription> HelixRequestBody for CreateEventSubSubscriptionBody<E>
Available on crate feature
eventsub
only.