Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Remove unused tag 'label' on ban event (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
0nkery authored Jul 12, 2023
1 parent 17e7047 commit 9fee155
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "svc-events"
version = "0.10.0"
version = "0.11.0"
edition = "2021"
license = "MIT"
repository = "https://github.com/foxford/svc-events"
Expand Down
6 changes: 0 additions & 6 deletions src/v1/ban.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use uuid::Uuid;
use crate::{Event, EventId, EventV1};

#[derive(Debug, Clone, Deserialize, Serialize, Eq, PartialEq)]
#[serde(tag = "label", rename_all = "snake_case")]
#[serde(rename(deserialize = "BanIntentEvent"))]
pub struct BanIntentV1 {
pub ban: bool,
Expand All @@ -23,7 +22,6 @@ impl From<BanIntentV1> for Event {
}

#[derive(Debug, Clone, Deserialize, Serialize, Eq, PartialEq)]
#[serde(tag = "label", rename_all = "snake_case")]
#[serde(rename(deserialize = "BanAccepted"))]
pub struct BanAcceptedV1 {
pub ban: bool,
Expand All @@ -39,7 +37,6 @@ impl From<BanAcceptedV1> for Event {
}

#[derive(Debug, Clone, Deserialize, Serialize, Eq, PartialEq)]
#[serde(tag = "label", rename_all = "snake_case")]
#[serde(rename(deserialize = "BanRejected"))]
pub struct BanRejectedV1 {
pub ban: bool,
Expand All @@ -55,7 +52,6 @@ impl From<BanRejectedV1> for Event {
}

#[derive(Debug, Clone, Deserialize, Serialize, Eq, PartialEq)]
#[serde(tag = "label", rename_all = "snake_case")]
#[serde(rename(deserialize = "BanVideoStreamingCompleted"))]
pub struct BanVideoStreamingCompletedV1 {
pub ban: bool,
Expand Down Expand Up @@ -84,7 +80,6 @@ impl From<BanVideoStreamingCompletedV1> for Event {
}

#[derive(Debug, Clone, Deserialize, Serialize, Eq, PartialEq)]
#[serde(tag = "label", rename_all = "snake_case")]
#[serde(rename(deserialize = "BanCollaborationCompleted"))]
pub struct BanCollaborationCompletedV1 {
pub ban: bool,
Expand Down Expand Up @@ -113,7 +108,6 @@ impl From<BanCollaborationCompletedV1> for Event {
}

#[derive(Debug, Clone, Deserialize, Serialize, Eq, PartialEq)]
#[serde(tag = "label", rename_all = "snake_case")]
#[serde(rename(deserialize = "BanCompleted"))]
pub struct BanCompletedV1 {
pub ban: bool,
Expand Down

0 comments on commit 9fee155

Please sign in to comment.