#[non_exhaustive]pub struct GroupFindingsResponse {
pub group_by_results: Vec<GroupResult>,
pub next_page_token: String,
pub total_size: i32,
/* private fields */
}Expand description
Response message for group by findings.
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.group_by_results: Vec<GroupResult>Group results. There exists an element for each existing unique combination of property/values. The element contains a count for the number of times those specific property/values appear.
next_page_token: StringToken to retrieve the next page of results, or empty if there are no more results.
total_size: i32The total number of results matching the query.
Implementations§
Source§impl GroupFindingsResponse
impl GroupFindingsResponse
pub fn new() -> Self
Sourcepub fn set_group_by_results<T, V>(self, v: T) -> Self
pub fn set_group_by_results<T, V>(self, v: T) -> Self
Sets the value of group_by_results.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::GroupResult;
let x = GroupFindingsResponse::new()
.set_group_by_results([
GroupResult::default()/* use setters */,
GroupResult::default()/* use (different) setters */,
]);Sourcepub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of next_page_token.
§Example
ⓘ
let x = GroupFindingsResponse::new().set_next_page_token("example");Sourcepub fn set_total_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_total_size<T: Into<i32>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for GroupFindingsResponse
impl Clone for GroupFindingsResponse
Source§fn clone(&self) -> GroupFindingsResponse
fn clone(&self) -> GroupFindingsResponse
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 GroupFindingsResponse
impl Debug for GroupFindingsResponse
Source§impl Default for GroupFindingsResponse
impl Default for GroupFindingsResponse
Source§fn default() -> GroupFindingsResponse
fn default() -> GroupFindingsResponse
Returns the “default value” for a type. Read more
Source§impl Message for GroupFindingsResponse
impl Message for GroupFindingsResponse
Source§impl PartialEq for GroupFindingsResponse
impl PartialEq for GroupFindingsResponse
impl StructuralPartialEq for GroupFindingsResponse
Auto Trait Implementations§
impl Freeze for GroupFindingsResponse
impl RefUnwindSafe for GroupFindingsResponse
impl Send for GroupFindingsResponse
impl Sync for GroupFindingsResponse
impl Unpin for GroupFindingsResponse
impl UnwindSafe for GroupFindingsResponse
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