#[non_exhaustive]pub struct CreateSubmissionRequest {
pub parent: String,
pub submission: Option<Submission>,
/* private fields */
}Expand description
Request to send a potentially phishy URI to WebRisk.
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.parent: StringRequired. The name of the project that is making the submission. This string is in the format “projects/{project_number}”.
submission: Option<Submission>Required. The submission that contains the content of the phishing report.
Implementations§
Source§impl CreateSubmissionRequest
impl CreateSubmissionRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_submission<T>(self, v: T) -> Selfwhere
T: Into<Submission>,
pub fn set_submission<T>(self, v: T) -> Selfwhere
T: Into<Submission>,
Sets the value of submission.
Sourcepub fn set_or_clear_submission<T>(self, v: Option<T>) -> Selfwhere
T: Into<Submission>,
pub fn set_or_clear_submission<T>(self, v: Option<T>) -> Selfwhere
T: Into<Submission>,
Sets or clears the value of submission.
Trait Implementations§
Source§impl Clone for CreateSubmissionRequest
impl Clone for CreateSubmissionRequest
Source§fn clone(&self) -> CreateSubmissionRequest
fn clone(&self) -> CreateSubmissionRequest
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 CreateSubmissionRequest
impl Debug for CreateSubmissionRequest
Source§impl Default for CreateSubmissionRequest
impl Default for CreateSubmissionRequest
Source§fn default() -> CreateSubmissionRequest
fn default() -> CreateSubmissionRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateSubmissionRequest
impl Message for CreateSubmissionRequest
Source§impl PartialEq for CreateSubmissionRequest
impl PartialEq for CreateSubmissionRequest
impl StructuralPartialEq for CreateSubmissionRequest
Auto Trait Implementations§
impl Freeze for CreateSubmissionRequest
impl RefUnwindSafe for CreateSubmissionRequest
impl Send for CreateSubmissionRequest
impl Sync for CreateSubmissionRequest
impl Unpin for CreateSubmissionRequest
impl UnwindSafe for CreateSubmissionRequest
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