pub trait Requestable:
'static
+ Send
+ Sync
+ DeserializeOwned
+ Debug
+ Clone
+ PartialEq {
type Identifier: Clone + Eq + Hash + Display + Sync + Debug;
type URL: RequestURL;
// Required methods
fn id(&self) -> &Self::Identifier;
fn url_for_id(id: &Self::Identifier) -> Self::URL;
fn get_entries(
response: <Self::URL as RequestURL>::Response,
) -> impl IntoIterator<Item = Self>
where Self: Sized;
fn get_cache_table() -> &'static RwLock<CacheTable<Self>>
where Self: Sized;
}Required Associated Types§
Required Methods§
fn id(&self) -> &Self::Identifier
fn url_for_id(id: &Self::Identifier) -> Self::URL
fn get_entries(
response: <Self::URL as RequestURL>::Response,
) -> impl IntoIterator<Item = Self>where
Self: Sized,
fn get_cache_table() -> &'static RwLock<CacheTable<Self>>where
Self: Sized,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.