Trait FromName
pokerust
pub trait FromName: Named + Endpoint where Self: Sized, { fn from_name(id: &str) -> Result<Self, Error>; }
API resources that can be retrived from a name.
fn from_name(id: &str) -> Result<Self, Error>
Retrieve the API object of this type with this name.
impl<T: Endpoint + Named + DeserializeOwned> FromName for T