pub struct ResponseMetadata { /* private fields */ }Expand description
Bounded response metadata captured by a transport.
Implementations§
Source§impl ResponseMetadata
impl ResponseMetadata
Sourcepub const fn with_content_type(self, content_type: ResponseContentType) -> Self
pub const fn with_content_type(self, content_type: ResponseContentType) -> Self
Adds a validated response content type.
Sourcepub const fn with_rate_limit(self, rate_limit: RateLimit) -> Self
pub const fn with_rate_limit(self, rate_limit: RateLimit) -> Self
Adds validated rate-limit metadata.
Sourcepub const fn with_headers(self, headers: ResponseHeaders) -> Self
pub const fn with_headers(self, headers: ResponseHeaders) -> Self
Adds complete bounded response headers.
Trait Implementations§
Source§impl Clone for ResponseMetadata
impl Clone for ResponseMetadata
Source§fn clone(&self) -> ResponseMetadata
fn clone(&self) -> ResponseMetadata
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 Copy for ResponseMetadata
Auto Trait Implementations§
impl Freeze for ResponseMetadata
impl RefUnwindSafe for ResponseMetadata
impl Send for ResponseMetadata
impl Sync for ResponseMetadata
impl Unpin for ResponseMetadata
impl UnsafeUnpin for ResponseMetadata
impl UnwindSafe for ResponseMetadata
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