pub struct RouteSpec {
pub grpc_route: Option<GrpcRoute>,
pub http_2_route: Option<HttpRoute>,
pub http_route: Option<HttpRoute>,
pub priority: Option<i64>,
pub tcp_route: Option<TcpRoute>,
}
Expand description
An object that represents a route specification. Specify one route type.
Fields§
§grpc_route: Option<GrpcRoute>
An object that represents the specification of a gRPC route.
http_2_route: Option<HttpRoute>
An object that represents the specification of an HTTP/2 route.
http_route: Option<HttpRoute>
An object that represents the specification of an HTTP route.
priority: Option<i64>
The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.
tcp_route: Option<TcpRoute>
An object that represents the specification of a TCP route.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RouteSpec
impl<'de> Deserialize<'de> for RouteSpec
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
impl StructuralPartialEq for RouteSpec
Auto Trait Implementations§
impl Freeze for RouteSpec
impl RefUnwindSafe for RouteSpec
impl Send for RouteSpec
impl Sync for RouteSpec
impl Unpin for RouteSpec
impl UnwindSafe for RouteSpec
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