pinakes-plugin-api: suppress struct_field_names lint; minor doc tweaks

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I90f1cc46303564a61bdefe76d21045066a6a6964
This commit is contained in:
raf 2026-03-20 00:36:28 +03:00
commit 1ee225201a
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -1,7 +1,7 @@
//! Pinakes Plugin API //! Pinakes Plugin API
//! //!
//! This crate defines the stable plugin interface for Pinakes. //! Defines the "stable" plugin interface for Pinakes. Using this interface,
//! Plugins can extend Pinakes by implementing one or more of the provided //! plugins can extend Pinakes by implementing one or more of the provided
//! traits. //! traits.
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};
@ -23,6 +23,7 @@ pub use ui_schema::*;
pub use wasm::host_functions; pub use wasm::host_functions;
/// Plugin API version - plugins must match this version /// Plugin API version - plugins must match this version
/// FIXME: handle breaking changes for the API after stabilizing
pub const PLUGIN_API_VERSION: &str = "1.0"; pub const PLUGIN_API_VERSION: &str = "1.0";
/// Result type for plugin operations /// Result type for plugin operations
@ -355,6 +356,7 @@ pub enum EventType {
/// Event data /// Event data
#[derive(Debug, Clone, Serialize, Deserialize)] #[derive(Debug, Clone, Serialize, Deserialize)]
#[expect(clippy::struct_field_names)]
pub struct Event { pub struct Event {
pub event_type: EventType, pub event_type: EventType,
pub timestamp: String, pub timestamp: String,