xapi-shared 0.0.1

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

pub trait SharedWsResponseTrait<WsApiId: Hash + Eq + Clone> {
    fn try_parse(text: &str) -> Option<Result<Self, (WsApiId, SharedWsError)>>
    where
        Self: Sized;
    fn get_id(&self) -> &WsApiId;
}