pub struct RequestCachedResponseParams<'a> { /* private fields */ }Expand description
Fetches cache entry.
Implementations§
Source§impl<'a> RequestCachedResponseParams<'a>
impl<'a> RequestCachedResponseParams<'a>
Sourcepub fn builder(
cache_id: impl Into<CacheId<'a>>,
request_url: impl Into<Cow<'a, str>>,
request_headers: Vec<Header<'a>>,
) -> RequestCachedResponseParamsBuilder<'a>
pub fn builder( cache_id: impl Into<CacheId<'a>>, request_url: impl Into<Cow<'a, str>>, request_headers: Vec<Header<'a>>, ) -> RequestCachedResponseParamsBuilder<'a>
Creates a builder for this type with the required parameters:
cache_id: Id of cache that contains the entry.request_url: URL spec of the request.request_headers: headers of the request.
Sourcepub fn request_url(&self) -> &str
pub fn request_url(&self) -> &str
URL spec of the request.
Sourcepub fn request_headers(&self) -> &[Header<'a>]
pub fn request_headers(&self) -> &[Header<'a>]
headers of the request.
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for RequestCachedResponseParams<'a>
impl<'a> CdpCommand<'a> for RequestCachedResponseParams<'a>
Source§impl<'a> Clone for RequestCachedResponseParams<'a>
impl<'a> Clone for RequestCachedResponseParams<'a>
Source§fn clone(&self) -> RequestCachedResponseParams<'a>
fn clone(&self) -> RequestCachedResponseParams<'a>
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<'a> Debug for RequestCachedResponseParams<'a>
impl<'a> Debug for RequestCachedResponseParams<'a>
Source§impl<'a> Default for RequestCachedResponseParams<'a>
impl<'a> Default for RequestCachedResponseParams<'a>
Source§fn default() -> RequestCachedResponseParams<'a>
fn default() -> RequestCachedResponseParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for RequestCachedResponseParams<'a>
impl<'de, 'a> Deserialize<'de> for RequestCachedResponseParams<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for RequestCachedResponseParams<'a>
impl<'a> RefUnwindSafe for RequestCachedResponseParams<'a>
impl<'a> Send for RequestCachedResponseParams<'a>
impl<'a> Sync for RequestCachedResponseParams<'a>
impl<'a> Unpin for RequestCachedResponseParams<'a>
impl<'a> UnsafeUnpin for RequestCachedResponseParams<'a>
impl<'a> UnwindSafe for RequestCachedResponseParams<'a>
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