Struct postcode_nl::ApiLimits
source · [−]pub struct ApiLimits {
pub ratelimit_limit: u32,
pub ratelimit_remaining: u32,
pub api_limit: u32,
pub api_remaining: u32,
pub api_reset: String,
}Expand description
Usage limits of the API, returned with every request
Fields
ratelimit_limit: u32ratelimit_remaining: u32api_limit: u32api_remaining: u32api_reset: StringTrait Implementations
sourceimpl TryFrom<&HeaderMap<HeaderValue>> for ApiLimits
impl TryFrom<&HeaderMap<HeaderValue>> for ApiLimits
type Error = PostcodeError
type Error = PostcodeError
The type returned in the event of a conversion error.
sourcefn try_from(headers: &HeaderMap) -> Result<Self, PostcodeError>
fn try_from(headers: &HeaderMap) -> Result<Self, PostcodeError>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ApiLimits
impl Send for ApiLimits
impl Sync for ApiLimits
impl Unpin for ApiLimits
impl UnwindSafe for ApiLimits
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more