1use crate::ws::error::SharedWsError; 2use std::hash::Hash; 3 4pub trait SharedWsApiPayloadTrait<WsApiId: Hash + Eq + Clone> { 5 fn get_id(&self) -> &WsApiId; 6 fn serialize(&self) -> Result<String, SharedWsError>; 7}