pub struct WebFetchConfig {
pub enabled: bool,
pub provider: String,
pub api_key: Option<String>,
pub api_url: Option<String>,
pub allowed_domains: Vec<String>,
pub blocked_domains: Vec<String>,
pub max_response_size: usize,
pub timeout_secs: u64,
pub user_agent: String,
}Fields§
§enabled: bool§provider: String§api_key: Option<String>§api_url: Option<String>§allowed_domains: Vec<String>§blocked_domains: Vec<String>§max_response_size: usize§timeout_secs: u64§user_agent: StringTrait Implementations§
Source§impl Clone for WebFetchConfig
impl Clone for WebFetchConfig
Source§fn clone(&self) -> WebFetchConfig
fn clone(&self) -> WebFetchConfig
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 WebFetchConfig
impl Debug for WebFetchConfig
Source§impl Default for WebFetchConfig
impl Default for WebFetchConfig
Source§impl<'de> Deserialize<'de> for WebFetchConfigwhere
WebFetchConfig: Default,
impl<'de> Deserialize<'de> for WebFetchConfigwhere
WebFetchConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WebFetchConfig
impl RefUnwindSafe for WebFetchConfig
impl Send for WebFetchConfig
impl Sync for WebFetchConfig
impl Unpin for WebFetchConfig
impl UnsafeUnpin for WebFetchConfig
impl UnwindSafe for WebFetchConfig
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