pub struct RouteTargetReference {
pub kind: String,
pub name: String,
pub weight: i32,
}
Expand description
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§
Source§impl Clone for RouteTargetReference
impl Clone for RouteTargetReference
Source§fn clone(&self) -> RouteTargetReference
fn clone(&self) -> RouteTargetReference
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 RouteTargetReference
impl Debug for RouteTargetReference
Source§impl Default for RouteTargetReference
impl Default for RouteTargetReference
Source§fn default() -> RouteTargetReference
fn default() -> RouteTargetReference
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RouteTargetReference
impl<'de> Deserialize<'de> for RouteTargetReference
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RouteTargetReference
impl PartialEq for RouteTargetReference
Source§impl Serialize for RouteTargetReference
impl Serialize for RouteTargetReference
impl StructuralPartialEq for RouteTargetReference
Auto Trait Implementations§
impl Freeze for RouteTargetReference
impl RefUnwindSafe for RouteTargetReference
impl Send for RouteTargetReference
impl Sync for RouteTargetReference
impl Unpin for RouteTargetReference
impl UnwindSafe for RouteTargetReference
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