heygen 0.1.2

HeyGen API from Only Finance LTDA
Documentation
use serde::{Deserialize, Serialize};
use url::Url;

// TODO
// Use Url typeo or others for url instead of url
#[derive(Serialize)]
pub struct RegisterWebhookRequest {
    pub url: Url,
    pub events: Vec<String>,
}

#[derive(Serialize)]
pub struct UpdateWebhookRequest {
    pub url: Url,
    pub events: Vec<String>,
    pub endpoint_id: String,
}

#[derive(Debug, Deserialize)]
pub struct WebhookRequest {
    pub event_type: String,
    pub event_data: serde_json::Value,
}

#[derive(Debug, Serialize)]
pub struct WebhookResponse {
    pub message: String,
}