pub struct RequestCachedResponseBuilder { /* private fields */ }Expand description
Builder for RequestCachedResponse.
Implementations§
Source§impl RequestCachedResponseBuilder
impl RequestCachedResponseBuilder
Sourcepub fn cache_id<VALUE: Into<CacheId>>(&mut self, value: VALUE) -> &mut Self
pub fn cache_id<VALUE: Into<CacheId>>(&mut self, value: VALUE) -> &mut Self
Id of cache that contains the entry.
Sourcepub fn request_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn request_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
URL spec of the request.
Sourcepub fn request_headers<VALUE: Into<Vec<Header>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn request_headers<VALUE: Into<Vec<Header>>>( &mut self, value: VALUE, ) -> &mut Self
headers of the request.
Sourcepub fn build(
&self,
) -> Result<RequestCachedResponse, RequestCachedResponseBuilderError>
pub fn build( &self, ) -> Result<RequestCachedResponse, RequestCachedResponseBuilderError>
Trait Implementations§
Source§impl Clone for RequestCachedResponseBuilder
impl Clone for RequestCachedResponseBuilder
Source§fn clone(&self) -> RequestCachedResponseBuilder
fn clone(&self) -> RequestCachedResponseBuilder
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 moreAuto Trait Implementations§
impl Freeze for RequestCachedResponseBuilder
impl RefUnwindSafe for RequestCachedResponseBuilder
impl Send for RequestCachedResponseBuilder
impl Sync for RequestCachedResponseBuilder
impl Unpin for RequestCachedResponseBuilder
impl UnsafeUnpin for RequestCachedResponseBuilder
impl UnwindSafe for RequestCachedResponseBuilder
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