#[non_exhaustive]pub struct ListFindingsRequest {
pub parent: String,
pub filter: String,
pub page_token: String,
pub page_size: i32,
/* private fields */
}Expand description
Request for the ListFindings method.
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 parent resource name, which should be a scan run resource name in the format ‘projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}’.
filter: StringThe filter expression. The expression must be in the format: <field> <operator> <value>. Supported field: ‘finding_type’. Supported operator: ‘=’.
page_token: StringA token identifying a page of results to be returned. This should be a
next_page_token value returned from a previous List request.
If unspecified, the first page of results is returned.
page_size: i32The maximum number of Findings to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value.
Implementations§
Source§impl ListFindingsRequest
impl ListFindingsRequest
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
Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
§Example
ⓘ
let x = ListFindingsRequest::new().set_page_token("example");Trait Implementations§
Source§impl Clone for ListFindingsRequest
impl Clone for ListFindingsRequest
Source§fn clone(&self) -> ListFindingsRequest
fn clone(&self) -> ListFindingsRequest
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 ListFindingsRequest
impl Debug for ListFindingsRequest
Source§impl Default for ListFindingsRequest
impl Default for ListFindingsRequest
Source§fn default() -> ListFindingsRequest
fn default() -> ListFindingsRequest
Returns the “default value” for a type. Read more
Source§impl Message for ListFindingsRequest
impl Message for ListFindingsRequest
Source§impl PartialEq for ListFindingsRequest
impl PartialEq for ListFindingsRequest
impl StructuralPartialEq for ListFindingsRequest
Auto Trait Implementations§
impl Freeze for ListFindingsRequest
impl RefUnwindSafe for ListFindingsRequest
impl Send for ListFindingsRequest
impl Sync for ListFindingsRequest
impl Unpin for ListFindingsRequest
impl UnwindSafe for ListFindingsRequest
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