[][src]Struct openshift_openapi::api::route::v1::RouteTargetReference

pub struct RouteTargetReference {
    pub kind: String,
    pub name: String,
    pub weight: i32,
}

RouteTargetReference specifies the target that resolve into endpoints. Only the 'Service' kind is allowed. Use 'weight' field to emphasize one over others.

Fields

kind: String

The kind of target that the route is referring to. Currently, only 'Service' is allowed

name: String

name of the service/target that is being referred to. e.g. name of the service

weight: i32

weight as an integer between 0 and 256, default 1, that specifies the target's relative weight against other target reference objects. 0 suppresses requests to this backend.

Trait Implementations

impl Clone for RouteTargetReference[src]

impl Debug for RouteTargetReference[src]

impl Default for RouteTargetReference[src]

impl<'de> Deserialize<'de> for RouteTargetReference[src]

impl PartialEq<RouteTargetReference> for RouteTargetReference[src]

impl Serialize for RouteTargetReference[src]

impl StructuralPartialEq for RouteTargetReference[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.