Trait FromId
pokerust
pub trait FromId: Id + Endpoint where Self: Sized, { fn from_id(id: i16) -> Result<Self, Error>; }
API resources that can be retrived from an ID.
fn from_id(id: i16) -> Result<Self, Error>
Retrieve the API object of this type with this ID.
impl<T: Endpoint + Id + DeserializeOwned> FromId for T