pub struct RouteStatus {
pub address: Option<Addressable>,
pub conditions: Option<Vec<GoogleCloudRunV1Condition>>,
pub observed_generation: Option<i32>,
pub traffic: Option<Vec<TrafficTarget>>,
pub url: Option<String>,
}
Expand description
RouteStatus communicates the observed state of the Route (from the controller).
This type is not used in any activity, and only used as part of another schema.
Fields§
§address: Option<Addressable>
Similar to url, information on where the service is available on HTTP.
conditions: Option<Vec<GoogleCloudRunV1Condition>>
Conditions communicates information about ongoing/complete reconciliation processes that bring the “spec” inline with the observed state of the world.
observed_generation: Option<i32>
ObservedGeneration is the ‘Generation’ of the Route that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition’s status is True or False. Note that providing a TrafficTarget that has latest_revision=True will result in a Route that does not increment either its metadata.generation or its observedGeneration, as new “latest ready” revisions from the Configuration are processed without an update to the Route’s spec.
traffic: Option<Vec<TrafficTarget>>
Traffic holds the configured traffic distribution. These entries will always contain RevisionName references. When ConfigurationName appears in the spec, this will hold the LatestReadyRevisionName that was last observed.
url: Option<String>
URL holds the url that will distribute traffic over the provided traffic targets. It generally has the form: https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app
Trait Implementations§
Source§impl Clone for RouteStatus
impl Clone for RouteStatus
Source§fn clone(&self) -> RouteStatus
fn clone(&self) -> RouteStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RouteStatus
impl Debug for RouteStatus
Source§impl Default for RouteStatus
impl Default for RouteStatus
Source§fn default() -> RouteStatus
fn default() -> RouteStatus
Source§impl<'de> Deserialize<'de> for RouteStatus
impl<'de> Deserialize<'de> for RouteStatus
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 RouteStatus
impl Serialize for RouteStatus
impl Part for RouteStatus
Auto Trait Implementations§
impl Freeze for RouteStatus
impl RefUnwindSafe for RouteStatus
impl Send for RouteStatus
impl Sync for RouteStatus
impl Unpin for RouteStatus
impl UnwindSafe for RouteStatus
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