Trait cargonauts::api::Resource
[−]
[src]
pub trait Resource: Serialize + Sized { type Id: ToString + FromStr + PartialEq + Clone; fn id(&self) -> Self::Id; fn resource() -> &'static str; fn resource_plural() -> &'static str; }