pub struct TrafficTarget {
pub configuration_name: Option<String>,
pub latest_revision: Option<bool>,
pub percent: Option<i32>,
pub revision_name: Option<String>,
pub tag: Option<String>,
pub url: Option<String>,
}
Expand description
TrafficTarget holds a single entry of the routing table for a Route.
This type is not used in any activity, and only used as part of another schema.
Fields§
§configuration_name: Option<String>
[Deprecated] Not supported in Cloud Run. It must be empty.
latest_revision: Option<bool>
Uses the “status.latestReadyRevisionName” of the Service to determine the traffic target. When it changes, traffic will automatically migrate from the prior “latest ready” revision to the new one. This field must be false if RevisionName is set. This field defaults to true otherwise. If the field is set to true on Status, this means that the Revision was resolved from the Service’s latest ready revision.
percent: Option<i32>
Percent specifies percent of the traffic to this Revision or Configuration. This defaults to zero if unspecified.
revision_name: Option<String>
Points this traffic target to a specific Revision. This field is mutually exclusive with latest_revision.
tag: Option<String>
Tag is used to expose a dedicated url for referencing this target exclusively.
url: Option<String>
Output only. URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. https://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
Trait Implementations§
Source§impl Clone for TrafficTarget
impl Clone for TrafficTarget
Source§fn clone(&self) -> TrafficTarget
fn clone(&self) -> TrafficTarget
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TrafficTarget
impl Debug for TrafficTarget
Source§impl Default for TrafficTarget
impl Default for TrafficTarget
Source§fn default() -> TrafficTarget
fn default() -> TrafficTarget
Source§impl<'de> Deserialize<'de> for TrafficTarget
impl<'de> Deserialize<'de> for TrafficTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for TrafficTarget
impl Serialize for TrafficTarget
impl Part for TrafficTarget
Auto Trait Implementations§
impl Freeze for TrafficTarget
impl RefUnwindSafe for TrafficTarget
impl Send for TrafficTarget
impl Sync for TrafficTarget
impl Unpin for TrafficTarget
impl UnwindSafe for TrafficTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more