#[non_exhaustive]pub struct ListAvailableVersionsRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub latest_patch_only: bool,
/* private fields */
}Expand description
Request message for the list available versions request.
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 project and location for which to retrieve instance information in the format projects/{project}/locations/{location}.
page_size: i32The maximum number of items to return.
page_token: StringThe next_page_token value to use if there are additional results to retrieve for this list request.
latest_patch_only: boolWhether or not to return the latest patch of every available minor version. If true, only the latest patch will be returned. Ex. if allowed versions is [6.1.1, 6.1.2, 6.2.0] then response will be [6.1.2, 6.2.0]
Implementations§
Source§impl ListAvailableVersionsRequest
impl ListAvailableVersionsRequest
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
Sets the value of parent.
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sets the value of page_size.
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.
Sourcepub fn set_latest_patch_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_latest_patch_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of latest_patch_only.
Trait Implementations§
Source§impl Clone for ListAvailableVersionsRequest
impl Clone for ListAvailableVersionsRequest
Source§fn clone(&self) -> ListAvailableVersionsRequest
fn clone(&self) -> ListAvailableVersionsRequest
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 ListAvailableVersionsRequest
impl Debug for ListAvailableVersionsRequest
Source§impl Default for ListAvailableVersionsRequest
impl Default for ListAvailableVersionsRequest
Source§fn default() -> ListAvailableVersionsRequest
fn default() -> ListAvailableVersionsRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for ListAvailableVersionsRequest
impl PartialEq for ListAvailableVersionsRequest
Source§fn eq(&self, other: &ListAvailableVersionsRequest) -> bool
fn eq(&self, other: &ListAvailableVersionsRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ListAvailableVersionsRequest
Auto Trait Implementations§
impl Freeze for ListAvailableVersionsRequest
impl RefUnwindSafe for ListAvailableVersionsRequest
impl Send for ListAvailableVersionsRequest
impl Sync for ListAvailableVersionsRequest
impl Unpin for ListAvailableVersionsRequest
impl UnwindSafe for ListAvailableVersionsRequest
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