pub struct FetchConfig {
pub timeout_ms: Option<u64>,
pub headers: Option<FetchHeaders>,
pub accept: ContentType,
pub content_type: ContentType,
}
Fields§
§timeout_ms: Option<u64>
§headers: Option<FetchHeaders>
§accept: ContentType
What content-type should these requests accept (overrideable via FetchOptions)
content_type: ContentType
What content-type does do these requests send (overrideable via FetchOptions)
Trait Implementations§
Source§impl Clone for FetchConfig
impl Clone for FetchConfig
Source§fn clone(&self) -> FetchConfig
fn clone(&self) -> FetchConfig
Returns a copy 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 FetchConfig
impl Debug for FetchConfig
Source§impl Default for FetchConfig
impl Default for FetchConfig
Source§fn default() -> FetchConfig
fn default() -> FetchConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FetchConfig
impl RefUnwindSafe for FetchConfig
impl Send for FetchConfig
impl Sync for FetchConfig
impl Unpin for FetchConfig
impl UnwindSafe for FetchConfig
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