#[non_exhaustive]pub struct CloudRunConfig {
pub automatic_traffic_control: bool,
pub canary_revision_tags: Vec<String>,
pub prior_revision_tags: Vec<String>,
pub stable_revision_tags: Vec<String>,
/* private fields */
}Expand description
CloudRunConfig contains the Cloud Run runtime configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.automatic_traffic_control: boolOptional. Whether Cloud Deploy should update the traffic stanza in a Cloud Run Service on the user’s behalf to facilitate traffic splitting. This is required to be true for CanaryDeployments, but optional for CustomCanaryDeployments.
Optional. A list of tags that are added to the canary revision while the canary phase is in progress.
Optional. A list of tags that are added to the prior revision while the canary phase is in progress.
Optional. A list of tags that are added to the final stable revision when the stable phase is applied.
Implementations§
Source§impl CloudRunConfig
impl CloudRunConfig
Sourcepub fn set_automatic_traffic_control<T: Into<bool>>(self, v: T) -> Self
pub fn set_automatic_traffic_control<T: Into<bool>>(self, v: T) -> Self
Sets the value of automatic_traffic_control.
§Example
let x = CloudRunConfig::new().set_automatic_traffic_control(true);Sets the value of canary_revision_tags.
§Example
let x = CloudRunConfig::new().set_canary_revision_tags(["a", "b", "c"]);Sets the value of prior_revision_tags.
§Example
let x = CloudRunConfig::new().set_prior_revision_tags(["a", "b", "c"]);Sets the value of stable_revision_tags.
§Example
let x = CloudRunConfig::new().set_stable_revision_tags(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for CloudRunConfig
impl Clone for CloudRunConfig
Source§fn clone(&self) -> CloudRunConfig
fn clone(&self) -> CloudRunConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CloudRunConfig
impl Debug for CloudRunConfig
Source§impl Default for CloudRunConfig
impl Default for CloudRunConfig
Source§fn default() -> CloudRunConfig
fn default() -> CloudRunConfig
Source§impl Message for CloudRunConfig
impl Message for CloudRunConfig
Source§impl PartialEq for CloudRunConfig
impl PartialEq for CloudRunConfig
impl StructuralPartialEq for CloudRunConfig
Auto Trait Implementations§
impl Freeze for CloudRunConfig
impl RefUnwindSafe for CloudRunConfig
impl Send for CloudRunConfig
impl Sync for CloudRunConfig
impl Unpin for CloudRunConfig
impl UnsafeUnpin for CloudRunConfig
impl UnwindSafe for CloudRunConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request