[][src]Trait osauth::stream::Resource

pub trait Resource {
    type Id: Debug + Serialize;
    type Root: DeserializeOwned;
    fn resource_id(&self) -> Self::Id;
}

A single resource.

Associated Types

type Id: Debug + Serialize

Type of an ID.

type Root: DeserializeOwned

Root type of the listing.

Loading content...

Required methods

fn resource_id(&self) -> Self::Id

Retrieve a copy of the ID.

Loading content...

Implementors

Loading content...