Skip to content
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

chore: add DebatedSocialIssuesAndPolitics CCL and release v0.4.8 #67

Merged
merged 2 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@

## [Unreleased] - ReleaseDate

[Commits](https://github.com/twitch-rs/twitch_types/compare/v0.4.7...Unreleased)
[Commits](https://github.com/twitch-rs/twitch_types/compare/v0.4.8...Unreleased)

## [v0.4.8] - 2024-11-21

[Commits](https://github.com/twitch-rs/twitch_types/compare/v0.4.7...v0.4.8)

- Added `ContentClassificationId::DebatedSocialIssuesAndPolitics`
- Changed `ResubscriptionEmote` to `EmoteOccurrence`
- Deprecated `ResubscriptionEmote` (alias to `EmoteOccurrence`)

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "twitch_types"
version = "0.4.7"
version = "0.4.8"
edition = "2021"
repository = "https://github.com/twitch-rs/twitch_types"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Twitch Types | Rust library for common types used in Twitch

[![github]](https://github.com/twitch-rs/twitch_types) [![crates-io]](https://crates.io/crates/twitch_types) [![docs-rs-big]](https://docs.rs/twitch_types/0.4.7/twitch_types)
[![github]](https://github.com/twitch-rs/twitch_types) [![crates-io]](https://crates.io/crates/twitch_types) [![docs-rs-big]](https://docs.rs/twitch_types/0.4.8/twitch_types)

[github]: https://img.shields.io/badge/github-twitch--rs/twitch__types-8da0cb?style=for-the-badge&labelColor=555555&logo=github
[crates-io]: https://img.shields.io/crates/v/twitch_types.svg?style=for-the-badge&color=fc8d62&logo=rust
Expand Down
7 changes: 7 additions & 0 deletions src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,10 @@ impl core::fmt::Display for CommercialLengthParseError {
#[cfg_attr(feature = "serde", derive(serde_derive::Deserialize))]
#[cfg_attr(feature = "serde", serde(field_identifier))]
pub enum ContentClassificationId {
/// Politics and Sensitive Social Issues
///
/// Discussions or debates about politics or sensitive social issues such as elections, civic integrity, military conflict, and civil rights in a polarizing manner.
DebatedSocialIssuesAndPolitics,
/// Drugs, Intoxication, or Excessive Tobacco Use
///
/// Excessive tobacco glorification or promotion, any marijuana consumption/use, legal drug and alcohol induced intoxication, discussions of illegal drugs.
Expand Down Expand Up @@ -381,6 +385,9 @@ impl Serialize for ContentClassificationId {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: serde::Serializer {
serializer.serialize_str(match self {
ContentClassificationId::DebatedSocialIssuesAndPolitics => {
"DebatedSocialIssuesAndPolitics"
}
ContentClassificationId::DrugsIntoxication => "DrugsIntoxication",
ContentClassificationId::SexualThemes => "SexualThemes",
ContentClassificationId::ViolentGraphic => "ViolentGraphic",
Expand Down
Loading