Struct aspotify::Response [−][src]
pub struct Response<T> {
pub data: T,
pub expires: Instant,
}
Expand description
The result of a request to a Spotify endpoint.
Fields
data: T
The data itself.
expires: Instant
When the cache expires.
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Response<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Response<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more