#[non_exhaustive]pub struct ListImportJobsResponse {
pub import_jobs: Vec<ImportJob>,
pub next_page_token: String,
pub total_size: i32,
/* private fields */
}Expand description
Response message for KeyManagementService.ListImportJobs.
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.import_jobs: Vec<ImportJob>The list of ImportJobs.
next_page_token: StringA token to retrieve next page of results. Pass this value in ListImportJobsRequest.page_token to retrieve the next page of results.
total_size: i32The total number of ImportJobs that matched the query.
This field is not populated if ListImportJobsRequest.filter is applied.
Implementations§
Source§impl ListImportJobsResponse
impl ListImportJobsResponse
pub fn new() -> Self
Sourcepub fn set_import_jobs<T, V>(self, v: T) -> Self
pub fn set_import_jobs<T, V>(self, v: T) -> Self
Sets the value of import_jobs.
§Example
ⓘ
use google_cloud_kms_v1::model::ImportJob;
let x = ListImportJobsResponse::new()
.set_import_jobs([
ImportJob::default()/* use setters */,
ImportJob::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 = ListImportJobsResponse::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 ListImportJobsResponse
impl Clone for ListImportJobsResponse
Source§fn clone(&self) -> ListImportJobsResponse
fn clone(&self) -> ListImportJobsResponse
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 ListImportJobsResponse
impl Debug for ListImportJobsResponse
Source§impl Default for ListImportJobsResponse
impl Default for ListImportJobsResponse
Source§fn default() -> ListImportJobsResponse
fn default() -> ListImportJobsResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListImportJobsResponse
impl Message for ListImportJobsResponse
Source§impl PartialEq for ListImportJobsResponse
impl PartialEq for ListImportJobsResponse
impl StructuralPartialEq for ListImportJobsResponse
Auto Trait Implementations§
impl Freeze for ListImportJobsResponse
impl RefUnwindSafe for ListImportJobsResponse
impl Send for ListImportJobsResponse
impl Sync for ListImportJobsResponse
impl Unpin for ListImportJobsResponse
impl UnsafeUnpin for ListImportJobsResponse
impl UnwindSafe for ListImportJobsResponse
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