pub struct SafeFetchConfig {
pub max_redirects: u32,
pub max_body_size: usize,
pub prefer_markdown: bool,
}Expand description
Configuration for AcceleratedClient::fetch_safe.
Fields§
§max_redirects: u32Maximum number of redirect hops to follow.
max_body_size: usizeMaximum response body size in bytes before truncation.
prefer_markdown: boolSend Accept: text/markdown to prefer Cloudflare Markdown for Agents.
Trait Implementations§
Source§impl Clone for SafeFetchConfig
impl Clone for SafeFetchConfig
Source§fn clone(&self) -> SafeFetchConfig
fn clone(&self) -> SafeFetchConfig
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 SafeFetchConfig
impl Debug for SafeFetchConfig
Auto Trait Implementations§
impl Freeze for SafeFetchConfig
impl RefUnwindSafe for SafeFetchConfig
impl Send for SafeFetchConfig
impl Sync for SafeFetchConfig
impl Unpin for SafeFetchConfig
impl UnsafeUnpin for SafeFetchConfig
impl UnwindSafe for SafeFetchConfig
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