mirror of
https://github.com/TeamPiped/sponsorblock-mirror.git
synced 2025-01-09 11:00:36 +05:30
28 lines
636 B
Rust
28 lines
636 B
Rust
|
use serde::{Deserialize, Serialize};
|
||
|
|
||
|
#[derive(Serialize, Deserialize)]
|
||
|
pub struct Sponsor {
|
||
|
pub hash: String,
|
||
|
#[serde(rename = "video_id")]
|
||
|
pub video_id: String,
|
||
|
pub segments: Vec<Segment>,
|
||
|
}
|
||
|
|
||
|
|
||
|
#[derive(Serialize, Deserialize)]
|
||
|
pub struct Segment {
|
||
|
#[serde(rename = "uuid")]
|
||
|
pub uuid: String,
|
||
|
#[serde(rename = "action_type")]
|
||
|
pub action_type: String,
|
||
|
pub category: String,
|
||
|
pub description: String,
|
||
|
pub locked: i32,
|
||
|
pub segment: Vec<f32>,
|
||
|
#[serde(rename = "user_id")]
|
||
|
pub user_id: String,
|
||
|
#[serde(rename = "video_duration")]
|
||
|
pub video_duration: f32,
|
||
|
pub votes: i32,
|
||
|
}
|