Trait Resource
osauth::stream
pub trait Resource { type Id: Debug + Serialize; type Root: DeserializeOwned; fn resource_id(&self) -> Self::Id; }
A single resource.
type Id: Debug + Serialize
Type of an ID.
type Root: DeserializeOwned
Root type of the listing.
fn resource_id(&self) -> Self::Id
Retrieve a copy of the ID.