#[non_exhaustive]pub struct SearchUrisRequest {
pub uri: String,
pub threat_types: Vec<ThreatType>,
/* private fields */
}Expand description
Request to check URI entries against threatLists.
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.uri: StringRequired. The URI to be checked for matches.
threat_types: Vec<ThreatType>Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
Implementations§
Source§impl SearchUrisRequest
impl SearchUrisRequest
pub fn new() -> Self
Sourcepub fn set_threat_types<T, V>(self, v: T) -> Self
pub fn set_threat_types<T, V>(self, v: T) -> Self
Sets the value of threat_types.
Trait Implementations§
Source§impl Clone for SearchUrisRequest
impl Clone for SearchUrisRequest
Source§fn clone(&self) -> SearchUrisRequest
fn clone(&self) -> SearchUrisRequest
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 SearchUrisRequest
impl Debug for SearchUrisRequest
Source§impl Default for SearchUrisRequest
impl Default for SearchUrisRequest
Source§fn default() -> SearchUrisRequest
fn default() -> SearchUrisRequest
Returns the “default value” for a type. Read more
Source§impl Message for SearchUrisRequest
impl Message for SearchUrisRequest
Source§impl PartialEq for SearchUrisRequest
impl PartialEq for SearchUrisRequest
impl StructuralPartialEq for SearchUrisRequest
Auto Trait Implementations§
impl Freeze for SearchUrisRequest
impl RefUnwindSafe for SearchUrisRequest
impl Send for SearchUrisRequest
impl Sync for SearchUrisRequest
impl Unpin for SearchUrisRequest
impl UnwindSafe for SearchUrisRequest
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