Skip to content

Make it possible to construct a Response #369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 7, 2023
Merged

Conversation

Emilgardis
Copy link
Member

  • add Response::new and Response::with_data
  • Use the new methods for Response

@Emilgardis
Copy link
Member Author

data: CreateEventSubSubscription {
Ok(helix::Response::with_data(
CreateEventSubSubscription {
// helix::Response total is generally the total number of results, not what the total for this endpoint means. Thus, we set it to None.))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should fix this comment

Comment on lines +103 to +116
/// # Examples
///
/// ```rust
/// use twitch_api::helix::{self, Request, RequestPut};
///
/// #[derive(serde::Serialize, Debug, PartialEq)]
/// pub struct MyTwitchRequest {}
///
/// #[derive(serde::Deserialize, Debug, PartialEq)]
/// pub enum MyTwitchResponse {
/// Success,
/// }
///
/// impl Request for MyTwitchRequest {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this example could probably also be added to Request

@Emilgardis
Copy link
Member Author

Emilgardis commented May 7, 2023

going to try this to see that the merge queue is working, this pr should fail since #368 is merged

@Emilgardis Emilgardis added this pull request to the merge queue May 7, 2023
Merged via the queue into main with commit 0882d9e May 7, 2023
@Emilgardis Emilgardis deleted the response-create branch May 7, 2023 17:18
@Emilgardis
Copy link
Member Author

hmm, skipped = success....

@Emilgardis
Copy link
Member Author

Emilgardis commented May 7, 2023

solved with #372 i hope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant