pub struct RestApiResponse<T> {
pub status: u16,
pub headers: HashMap<String, String>,
pub rate_limits: Option<Vec<RestApiRateLimit>>,
/* private fields */
}Fields§
§status: u16§headers: HashMap<String, String>§rate_limits: Option<Vec<RestApiRateLimit>>Implementations§
Source§impl<T> RestApiResponse<T>where
T: Send + 'static,
impl<T> RestApiResponse<T>where
T: Send + 'static,
Sourcepub async fn data(self) -> Result<T, ConnectorError>
pub async fn data(self) -> Result<T, ConnectorError>
Auto Trait Implementations§
impl<T> Freeze for RestApiResponse<T>
impl<T> !RefUnwindSafe for RestApiResponse<T>
impl<T> Send for RestApiResponse<T>
impl<T> Sync for RestApiResponse<T>
impl<T> Unpin for RestApiResponse<T>
impl<T> !UnwindSafe for RestApiResponse<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more