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 VecT
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