#[non_exhaustive]pub struct ListWorkerPoolsResponse {
pub worker_pools: Vec<WorkerPool>,
pub next_page_token: String,
/* private fields */
}Expand description
Response message containing a list of WorkerPools.
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.worker_pools: Vec<WorkerPool>The resulting list of WorkerPools.
next_page_token: StringA token indicating there are more items than page_size. Use it in the next ListWorkerPools request to continue.
Implementations§
Source§impl ListWorkerPoolsResponse
impl ListWorkerPoolsResponse
pub fn new() -> Self
Sourcepub fn set_worker_pools<T, V>(self, v: T) -> Self
pub fn set_worker_pools<T, V>(self, v: T) -> Self
Sets the value of worker_pools.
§Example
ⓘ
use google_cloud_run_v2::model::WorkerPool;
let x = ListWorkerPoolsResponse::new()
.set_worker_pools([
WorkerPool::default()/* use setters */,
WorkerPool::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 = ListWorkerPoolsResponse::new().set_next_page_token("example");Trait Implementations§
Source§impl Clone for ListWorkerPoolsResponse
impl Clone for ListWorkerPoolsResponse
Source§fn clone(&self) -> ListWorkerPoolsResponse
fn clone(&self) -> ListWorkerPoolsResponse
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 ListWorkerPoolsResponse
impl Debug for ListWorkerPoolsResponse
Source§impl Default for ListWorkerPoolsResponse
impl Default for ListWorkerPoolsResponse
Source§fn default() -> ListWorkerPoolsResponse
fn default() -> ListWorkerPoolsResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListWorkerPoolsResponse
impl Message for ListWorkerPoolsResponse
Source§impl PartialEq for ListWorkerPoolsResponse
impl PartialEq for ListWorkerPoolsResponse
impl StructuralPartialEq for ListWorkerPoolsResponse
Auto Trait Implementations§
impl Freeze for ListWorkerPoolsResponse
impl RefUnwindSafe for ListWorkerPoolsResponse
impl Send for ListWorkerPoolsResponse
impl Sync for ListWorkerPoolsResponse
impl Unpin for ListWorkerPoolsResponse
impl UnwindSafe for ListWorkerPoolsResponse
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