[][src]Trait pokerust::FromId

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.

Required methods

fn from_id(id: i16) -> Result<Self, Error>

Retrieve the API object of this type with this ID.

Loading content...

Implementors

impl<T: Endpoint + Id + DeserializeOwned> FromId for T[src]

Loading content...