#[non_exhaustive]pub struct FetchToolConfig {
pub enabled: bool,
pub default_timeout_secs: u32,
pub max_timeout_secs: u32,
pub max_response_bytes: u64,
pub default_format: FetchFormat,
pub html_to_markdown: bool,
pub follow_redirects: bool,
}Expand description
Configuration for the local fetch tool.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enabled: bool§default_timeout_secs: u32§max_timeout_secs: u32§max_response_bytes: u64§default_format: FetchFormat§html_to_markdown: bool§follow_redirects: boolTrait Implementations§
Source§impl Clone for FetchToolConfig
impl Clone for FetchToolConfig
Source§fn clone(&self) -> FetchToolConfig
fn clone(&self) -> FetchToolConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FetchToolConfig
impl Debug for FetchToolConfig
Source§impl Default for FetchToolConfig
impl Default for FetchToolConfig
impl Eq for FetchToolConfig
Source§impl PartialEq for FetchToolConfig
impl PartialEq for FetchToolConfig
Source§fn eq(&self, other: &FetchToolConfig) -> bool
fn eq(&self, other: &FetchToolConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FetchToolConfig
Auto Trait Implementations§
impl Freeze for FetchToolConfig
impl RefUnwindSafe for FetchToolConfig
impl Send for FetchToolConfig
impl Sync for FetchToolConfig
impl Unpin for FetchToolConfig
impl UnsafeUnpin for FetchToolConfig
impl UnwindSafe for FetchToolConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.