#[non_exhaustive]pub struct GetBlueGreenDeploymentRequest {
pub name: String,
pub view: BlueGreenDeploymentView,
/* private fields */
}Expand description
The request message for getting a BlueGreenDeployment.
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.name: StringRequired. The name of the blue-green deployment to retrieve. Format: projects/{project}/locations/{location}/blueGreenDeployments/{blue_green_deployment}
view: BlueGreenDeploymentViewOptional. Specifies whether to return the basic or detailed view of the resource in the response.
Implementations§
Source§impl GetBlueGreenDeploymentRequest
impl GetBlueGreenDeploymentRequest
Sourcepub fn set_view<T: Into<BlueGreenDeploymentView>>(self, v: T) -> Self
pub fn set_view<T: Into<BlueGreenDeploymentView>>(self, v: T) -> Self
Sets the value of view.
§Example
ⓘ
use google_cloud_sql_v1::model::get_blue_green_deployment_request::BlueGreenDeploymentView;
let x0 = GetBlueGreenDeploymentRequest::new().set_view(BlueGreenDeploymentView::Basic);
let x1 = GetBlueGreenDeploymentRequest::new().set_view(BlueGreenDeploymentView::Detailed);Trait Implementations§
impl StructuralPartialEq for GetBlueGreenDeploymentRequest
Auto Trait Implementations§
impl Freeze for GetBlueGreenDeploymentRequest
impl RefUnwindSafe for GetBlueGreenDeploymentRequest
impl Send for GetBlueGreenDeploymentRequest
impl Sync for GetBlueGreenDeploymentRequest
impl Unpin for GetBlueGreenDeploymentRequest
impl UnsafeUnpin for GetBlueGreenDeploymentRequest
impl UnwindSafe for GetBlueGreenDeploymentRequest
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