pub struct ResponseMeta { /* private fields */ }Implementations§
Source§impl ResponseMeta
impl ResponseMeta
pub fn from_response_parts( operation: Option<String>, url: String, status: StatusCode, headers: &HeaderMap, request_id_header: &HeaderName, attempt_count: u32, elapsed: Duration, ) -> Self
pub fn operation(&self) -> Option<&str>
pub fn url(&self) -> &str
pub fn status(&self) -> u16
pub fn status_code(&self) -> StatusCode
pub fn request_id(&self) -> Option<&str>
pub fn attempt_count(&self) -> u32
pub fn elapsed(&self) -> Duration
pub fn retry_after(&self) -> Option<Duration>
Trait Implementations§
Source§impl Clone for ResponseMeta
impl Clone for ResponseMeta
Source§fn clone(&self) -> ResponseMeta
fn clone(&self) -> ResponseMeta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResponseMeta
impl Debug for ResponseMeta
Source§impl PartialEq for ResponseMeta
impl PartialEq for ResponseMeta
impl Eq for ResponseMeta
impl StructuralPartialEq for ResponseMeta
Auto Trait Implementations§
impl Freeze for ResponseMeta
impl RefUnwindSafe for ResponseMeta
impl Send for ResponseMeta
impl Sync for ResponseMeta
impl Unpin for ResponseMeta
impl UnsafeUnpin for ResponseMeta
impl UnwindSafe for ResponseMeta
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