pub struct RequestMetadata {
pub method: Method,
pub endpoint: String,
pub sanitized_url: String,
}Expand description
Metadata safe to emit in request logs.
Fields§
§method: Method§endpoint: String§sanitized_url: StringImplementations§
Source§impl RequestMetadata
impl RequestMetadata
Sourcepub fn from_builder(
builder: &RequestBuilder,
endpoint: impl Into<String>,
) -> Option<Self>
pub fn from_builder( builder: &RequestBuilder, endpoint: impl Into<String>, ) -> Option<Self>
Builds safe request metadata from a cloneable reqwest request builder.
Trait Implementations§
Source§impl Clone for RequestMetadata
impl Clone for RequestMetadata
Source§fn clone(&self) -> RequestMetadata
fn clone(&self) -> RequestMetadata
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 moreSource§impl Debug for RequestMetadata
impl Debug for RequestMetadata
impl Eq for RequestMetadata
Source§impl PartialEq for RequestMetadata
impl PartialEq for RequestMetadata
Source§fn eq(&self, other: &RequestMetadata) -> bool
fn eq(&self, other: &RequestMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RequestMetadata
Auto Trait Implementations§
impl Freeze for RequestMetadata
impl RefUnwindSafe for RequestMetadata
impl Send for RequestMetadata
impl Sync for RequestMetadata
impl Unpin for RequestMetadata
impl UnsafeUnpin for RequestMetadata
impl UnwindSafe for RequestMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.