pub struct DataEntryBuilder { /* private fields */ }Available on crate features
experimental and CacheStorage only.Implementations§
Source§impl DataEntryBuilder
impl DataEntryBuilder
Sourcepub fn request_url(&mut self, v: String) -> &mut Self
pub fn request_url(&mut self, v: String) -> &mut Self
Request URL.
Sourcepub fn request_method(&mut self, v: String) -> &mut Self
pub fn request_method(&mut self, v: String) -> &mut Self
Request method.
Sourcepub fn request_headers(&mut self, v: Vec<Header>) -> &mut Self
pub fn request_headers(&mut self, v: Vec<Header>) -> &mut Self
Request headers
Sourcepub fn response_time(&mut self, v: f64) -> &mut Self
pub fn response_time(&mut self, v: f64) -> &mut Self
Number of seconds since epoch.
Sourcepub fn response_status(&mut self, v: u32) -> &mut Self
pub fn response_status(&mut self, v: u32) -> &mut Self
HTTP response status code.
Sourcepub fn response_status_text(&mut self, v: String) -> &mut Self
pub fn response_status_text(&mut self, v: String) -> &mut Self
HTTP response status text.
Sourcepub fn response_type(&mut self, v: CachedResponseType) -> &mut Self
pub fn response_type(&mut self, v: CachedResponseType) -> &mut Self
HTTP response type
Sourcepub fn response_headers(&mut self, v: Vec<Header>) -> &mut Self
pub fn response_headers(&mut self, v: Vec<Header>) -> &mut Self
Response headers
pub fn build(&mut self) -> Result<DataEntry, &'static str>
Trait Implementations§
Source§impl Clone for DataEntryBuilder
impl Clone for DataEntryBuilder
Source§fn clone(&self) -> DataEntryBuilder
fn clone(&self) -> DataEntryBuilder
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 Debug for DataEntryBuilder
impl Debug for DataEntryBuilder
Auto Trait Implementations§
impl Freeze for DataEntryBuilder
impl RefUnwindSafe for DataEntryBuilder
impl Send for DataEntryBuilder
impl Sync for DataEntryBuilder
impl Unpin for DataEntryBuilder
impl UnwindSafe for DataEntryBuilder
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