Skip to content

Commit

Permalink
Merge pull request #67 from twitch-rs/fix/new-ccl
Browse files Browse the repository at this point in the history
chore: add `DebatedSocialIssuesAndPolitics` CCL and release v0.4.8
  • Loading branch information
Nerixyz authored Nov 22, 2024
2 parents 37322dd + 9307755 commit 2c3a5e1
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
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

0 comments on commit 2c3a5e1

Please sign in to comment.