pub struct FetchOptions<'a> {
pub if_none_match: Option<&'a str>,
pub max_bytes: Option<u64>,
pub user_agent: Option<&'a str>,
}Expand description
Options controlling a fetch.
Fields§
§if_none_match: Option<&'a str>Conditional fetch: send If-None-Match and treat 304 as “unchanged”.
max_bytes: Option<u64>Skip bodies larger than this many bytes.
user_agent: Option<&'a str>Override the User-Agent for this fetch.
Trait Implementations§
Source§impl<'a> Clone for FetchOptions<'a>
impl<'a> Clone for FetchOptions<'a>
impl<'a> Copy for FetchOptions<'a>
Source§impl<'a> Debug for FetchOptions<'a>
impl<'a> Debug for FetchOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for FetchOptions<'a>
impl<'a> RefUnwindSafe for FetchOptions<'a>
impl<'a> Send for FetchOptions<'a>
impl<'a> Sync for FetchOptions<'a>
impl<'a> Unpin for FetchOptions<'a>
impl<'a> UnsafeUnpin for FetchOptions<'a>
impl<'a> UnwindSafe for FetchOptions<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more