pub struct SafeBrowsingConfig {
pub api_key: Zeroizing<String>,
pub client_id: String,
pub client_version: String,
pub base_url: Option<String>,
pub threat_types: Vec<String>,
pub timeout: Duration,
}Expand description
Configuration for SafeBrowsingGuard.
Fields§
§api_key: Zeroizing<String>API key (query parameter key).
client_id: StringClient identifier submitted in the request body.
client_version: StringClient version submitted in the request body.
base_url: Option<String>Override the base URL (test hook).
threat_types: Vec<String>Threat types to query.
timeout: DurationPer-request HTTP timeout.
Implementations§
Trait Implementations§
Source§impl Clone for SafeBrowsingConfig
impl Clone for SafeBrowsingConfig
Source§fn clone(&self) -> SafeBrowsingConfig
fn clone(&self) -> SafeBrowsingConfig
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 moreAuto Trait Implementations§
impl Freeze for SafeBrowsingConfig
impl RefUnwindSafe for SafeBrowsingConfig
impl Send for SafeBrowsingConfig
impl Sync for SafeBrowsingConfig
impl Unpin for SafeBrowsingConfig
impl UnsafeUnpin for SafeBrowsingConfig
impl UnwindSafe for SafeBrowsingConfig
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