xapi-shared 0.0.1

XAPI Shared Library
Documentation
1
2
3
4
5
6
7
use crate::ws::error::SharedWsError;
use std::hash::Hash;

pub trait SharedWsApiPayloadTrait<WsApiId: Hash + Eq + Clone> {
    fn get_id(&self) -> &WsApiId;
    fn serialize(&self) -> Result<String, SharedWsError>;
}