mirror of
https://github.com/TeamPiped/sponsorblock-mirror.git
synced 2024-12-13 05:40: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)]
|
#[derive(Serialize, Deserialize)]
|
||||||
pub struct Sponsor {
|
pub struct Sponsor {
|
||||||
pub hash: String,
|
pub hash: String,
|
||||||
#[serde(rename = "video_id")]
|
#[serde(rename = "videoID")]
|
||||||
pub video_id: String,
|
pub video_id: String,
|
||||||
pub segments: Vec<Segment>,
|
pub segments: Vec<Segment>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Serialize, Deserialize)]
|
||||||
pub struct Segment {
|
pub struct Segment {
|
||||||
#[serde(rename = "uuid")]
|
#[serde(rename = "UUID")]
|
||||||
pub uuid: String,
|
pub uuid: String,
|
||||||
#[serde(rename = "action_type")]
|
#[serde(rename = "actionType")]
|
||||||
pub action_type: String,
|
pub action_type: String,
|
||||||
pub category: String,
|
pub category: String,
|
||||||
pub description: String,
|
pub description: String,
|
||||||
pub locked: i32,
|
pub locked: i32,
|
||||||
pub segment: Vec<f32>,
|
pub segment: Vec<f32>,
|
||||||
#[serde(rename = "user_id")]
|
#[serde(rename = "userID")]
|
||||||
pub user_id: String,
|
pub user_id: String,
|
||||||
#[serde(rename = "video_duration")]
|
#[serde(rename = "videoDuration")]
|
||||||
pub video_duration: f32,
|
pub video_duration: f32,
|
||||||
pub votes: i32,
|
pub votes: i32,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user