#[non_exhaustive]pub struct ListScanRunsRequest {
pub parent: String,
pub page_token: String,
pub page_size: i32,
/* private fields */
}Expand description
Request for the ListScanRuns 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 resource name in the format ‘projects/{projectId}/scanConfigs/{scanConfigId}’.
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 ScanRuns to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value.
Implementations§
Source§impl ListScanRunsRequest
impl ListScanRunsRequest
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_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 = ListScanRunsRequest::new().set_page_token("example");Trait Implementations§
Source§impl Clone for ListScanRunsRequest
impl Clone for ListScanRunsRequest
Source§fn clone(&self) -> ListScanRunsRequest
fn clone(&self) -> ListScanRunsRequest
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 ListScanRunsRequest
impl Debug for ListScanRunsRequest
Source§impl Default for ListScanRunsRequest
impl Default for ListScanRunsRequest
Source§fn default() -> ListScanRunsRequest
fn default() -> ListScanRunsRequest
Returns the “default value” for a type. Read more
Source§impl Message for ListScanRunsRequest
impl Message for ListScanRunsRequest
Source§impl PartialEq for ListScanRunsRequest
impl PartialEq for ListScanRunsRequest
impl StructuralPartialEq for ListScanRunsRequest
Auto Trait Implementations§
impl Freeze for ListScanRunsRequest
impl RefUnwindSafe for ListScanRunsRequest
impl Send for ListScanRunsRequest
impl Sync for ListScanRunsRequest
impl Unpin for ListScanRunsRequest
impl UnwindSafe for ListScanRunsRequest
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