pub struct FetchKeyData {
pub url: Url,
pub method: Method,
pub headers: HeaderMap,
}Expand description
A fetch key data is a key that is used to find out if two requests want to fetch the same resource. If this is true, the requests are bundled so only once the resource will be fetched.
Fields§
§url: UrlURL fetched
method: MethodHTTP method used (GET, POST etc.)
headers: HeaderMapHTTP headers
Implementations§
Trait Implementations§
Source§impl Clone for FetchKeyData
impl Clone for FetchKeyData
Source§fn clone(&self) -> FetchKeyData
fn clone(&self) -> FetchKeyData
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 FetchKeyData
impl Debug for FetchKeyData
Source§impl Display for FetchKeyData
impl Display for FetchKeyData
impl Eq for FetchKeyData
Source§impl Hash for FetchKeyData
impl Hash for FetchKeyData
Source§impl PartialEq for FetchKeyData
impl PartialEq for FetchKeyData
Source§fn eq(&self, other: &FetchKeyData) -> bool
fn eq(&self, other: &FetchKeyData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FetchKeyData
Auto Trait Implementations§
impl Freeze for FetchKeyData
impl RefUnwindSafe for FetchKeyData
impl Send for FetchKeyData
impl Sync for FetchKeyData
impl Unpin for FetchKeyData
impl UnsafeUnpin for FetchKeyData
impl UnwindSafe for FetchKeyData
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§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.