pub struct RequestCachedResponseBuilder { /* private fields */ }Implementations§
Source§impl RequestCachedResponseBuilder
impl RequestCachedResponseBuilder
pub fn cache_id(self, cache_id: impl Into<CacheId>) -> Self
pub fn request_url(self, request_url: impl Into<String>) -> Self
pub fn request_header(self, request_header: impl Into<Header>) -> Self
pub fn request_headers<I, S>(self, request_headers: I) -> Self
pub fn build(self) -> Result<RequestCachedResponse, String>
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 moreSource§impl Default for RequestCachedResponseBuilder
impl Default for RequestCachedResponseBuilder
Source§fn default() -> RequestCachedResponseBuilder
fn default() -> RequestCachedResponseBuilder
Returns the “default value” for a type. Read more
Auto 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