mirror of
https://github.com/TeamPiped/sponsorblock-mirror.git
synced 2024-12-12 21:30:36 +05:30
Fix struct serialization names.
This commit is contained in:
parent
c1414e307f
commit
37f677e1dc
@ -3,25 +3,24 @@ use serde::{Deserialize, Serialize};
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct Sponsor {
|
||||
pub hash: String,
|
||||
#[serde(rename = "video_id")]
|
||||
#[serde(rename = "videoID")]
|
||||
pub video_id: String,
|
||||
pub segments: Vec<Segment>,
|
||||
}
|
||||
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct Segment {
|
||||
#[serde(rename = "uuid")]
|
||||
#[serde(rename = "UUID")]
|
||||
pub uuid: String,
|
||||
#[serde(rename = "action_type")]
|
||||
#[serde(rename = "actionType")]
|
||||
pub action_type: String,
|
||||
pub category: String,
|
||||
pub description: String,
|
||||
pub locked: i32,
|
||||
pub segment: Vec<f32>,
|
||||
#[serde(rename = "user_id")]
|
||||
#[serde(rename = "userID")]
|
||||
pub user_id: String,
|
||||
#[serde(rename = "video_duration")]
|
||||
#[serde(rename = "videoDuration")]
|
||||
pub video_duration: f32,
|
||||
pub votes: i32,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user