Struct dnsimple::dnsimple::DNSimpleResponse
source · pub struct DNSimpleResponse<T> {
pub rate_limit: String,
pub rate_limit_remaining: String,
pub rate_limit_reset: String,
pub status: u16,
pub data: Option<T>,
pub pagination: Option<Pagination>,
pub body: Option<Value>,
}
Expand description
Represents the response from an API call
Fields§
§rate_limit: String
The maximum number of requests you can perform per hour.
rate_limit_remaining: String
The number of requests remaining in the current rate limit window.
rate_limit_reset: String
The time at which the current rate limit window in Unix time format.
status: u16
The HTTP Status Code
data: Option<T>
The object or a Vec<T>
of objects (the type T
will depend on the endpoint).
pagination: Option<Pagination>
Any API endpoint that returns a list of items requires pagination.
body: Option<Value>
The body as a JSON Value
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for DNSimpleResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for DNSimpleResponse<T>where
T: RefUnwindSafe,
impl<T> Send for DNSimpleResponse<T>where
T: Send,
impl<T> Sync for DNSimpleResponse<T>where
T: Sync,
impl<T> Unpin for DNSimpleResponse<T>where
T: Unpin,
impl<T> UnwindSafe for DNSimpleResponse<T>where
T: UnwindSafe,
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