rs-plugin-common-interfaces 0.45.0

Common description for plugin creation
Documentation
use serde::{Deserialize, Serialize};

use crate::ElementType;

#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Default)]
#[serde(rename_all = "camelCase")]
pub struct RsDeleted {
    pub id: String,
    /// When it was deleted, in milliseconds since the Unix epoch.
    pub date: i64,
    #[serde(rename = "type")]
    pub kind: ElementType,
}

impl RsDeleted {
    pub fn new(kind: ElementType, id: String, date: i64) -> Self {
        Self { id, date, kind }
    }
}