xapi_shared/ws/
response.rs1use crate::ws::error::SharedWsError;
2use std::hash::Hash;
3
4pub trait SharedWsResponseTrait<WsApiId: Hash + Eq + Clone> {
5 fn try_parse(text: &str) -> Option<Result<Self, (WsApiId, SharedWsError)>>
6 where
7 Self: Sized;
8 fn get_id(&self) -> &WsApiId;
9}