#[non_exhaustive]pub struct ApproveRolloutRequest {
pub name: String,
pub approved: bool,
pub override_deploy_policy: Vec<String>,
/* private fields */
}
Expand description
The request object used by ApproveRollout
.
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: String
Required. Name of the Rollout. Format is
projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}
.
approved: bool
Required. True = approve; false = reject
override_deploy_policy: Vec<String>
Optional. Deploy policies to override. Format is
projects/{project}/locations/{location}/deployPolicies/{deployPolicy}
.
Implementations§
Source§impl ApproveRolloutRequest
impl ApproveRolloutRequest
pub fn new() -> Self
Sourcepub fn set_approved<T: Into<bool>>(self, v: T) -> Self
pub fn set_approved<T: Into<bool>>(self, v: T) -> Self
Sets the value of approved.
Sourcepub fn set_override_deploy_policy<T, V>(self, v: T) -> Self
pub fn set_override_deploy_policy<T, V>(self, v: T) -> Self
Sets the value of override_deploy_policy.
Trait Implementations§
Source§impl Clone for ApproveRolloutRequest
impl Clone for ApproveRolloutRequest
Source§fn clone(&self) -> ApproveRolloutRequest
fn clone(&self) -> ApproveRolloutRequest
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 ApproveRolloutRequest
impl Debug for ApproveRolloutRequest
Source§impl Default for ApproveRolloutRequest
impl Default for ApproveRolloutRequest
Source§fn default() -> ApproveRolloutRequest
fn default() -> ApproveRolloutRequest
Returns the “default value” for a type. Read more
Source§impl Message for ApproveRolloutRequest
impl Message for ApproveRolloutRequest
Source§impl PartialEq for ApproveRolloutRequest
impl PartialEq for ApproveRolloutRequest
impl StructuralPartialEq for ApproveRolloutRequest
Auto Trait Implementations§
impl Freeze for ApproveRolloutRequest
impl RefUnwindSafe for ApproveRolloutRequest
impl Send for ApproveRolloutRequest
impl Sync for ApproveRolloutRequest
impl Unpin for ApproveRolloutRequest
impl UnwindSafe for ApproveRolloutRequest
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