pub struct CheckedResponse<'body> { /* private fields */ }Expand description
Response that passed one operation’s complete provider-neutral policy.
Implementations§
Source§impl CheckedResponse<'_>
impl CheckedResponse<'_>
Sourcepub const fn status(&self) -> StatusCode
pub const fn status(&self) -> StatusCode
Returns the checked status code.
Sourcepub const fn content_type(&self) -> Option<ResponseContentType>
pub const fn content_type(&self) -> Option<ResponseContentType>
Returns the checked response content type when supplied.
Sourcepub const fn rate_limit(&self) -> Option<RateLimit>
pub const fn rate_limit(&self) -> Option<RateLimit>
Returns validated rate-limit metadata when supplied.
Trait Implementations§
Source§impl<'body> Clone for CheckedResponse<'body>
impl<'body> Clone for CheckedResponse<'body>
Source§fn clone(&self) -> CheckedResponse<'body>
fn clone(&self) -> CheckedResponse<'body>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'body> Copy for CheckedResponse<'body>
Source§impl Debug for CheckedResponse<'_>
impl Debug for CheckedResponse<'_>
impl<'body> Eq for CheckedResponse<'body>
Source§impl<'body> PartialEq for CheckedResponse<'body>
impl<'body> PartialEq for CheckedResponse<'body>
impl<'body> StructuralPartialEq for CheckedResponse<'body>
Auto Trait Implementations§
impl<'body> Freeze for CheckedResponse<'body>
impl<'body> RefUnwindSafe for CheckedResponse<'body>
impl<'body> Send for CheckedResponse<'body>
impl<'body> Sync for CheckedResponse<'body>
impl<'body> Unpin for CheckedResponse<'body>
impl<'body> UnsafeUnpin for CheckedResponse<'body>
impl<'body> UnwindSafe for CheckedResponse<'body>
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