#[non_exhaustive]pub struct Submission {
pub uri: String,
pub threat_types: Vec<ThreatType>,
/* private fields */
}Expand description
Wraps a URI that might be displaying malicious content.
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 that is being reported for malicious content to be analyzed.
threat_types: Vec<ThreatType>Output only. ThreatTypes found to be associated with the submitted URI after reviewing it. This might be empty if the URI was not added to any list.
Implementations§
Source§impl Submission
impl Submission
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 Submission
impl Clone for Submission
Source§fn clone(&self) -> Submission
fn clone(&self) -> Submission
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 Submission
impl Debug for Submission
Source§impl Default for Submission
impl Default for Submission
Source§fn default() -> Submission
fn default() -> Submission
Returns the “default value” for a type. Read more
Source§impl PartialEq for Submission
impl PartialEq for Submission
impl StructuralPartialEq for Submission
Auto Trait Implementations§
impl Freeze for Submission
impl RefUnwindSafe for Submission
impl Send for Submission
impl Sync for Submission
impl Unpin for Submission
impl UnwindSafe for Submission
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