pub struct Route {
pub description: String,
pub destination: RouteDestination,
pub id: String,
pub kind: RouteKind,
pub name: String,
pub router_id: String,
pub target: RouteTarget,
pub time_created: Option<DateTime<Utc>>,
pub time_modified: Option<DateTime<Utc>>,
}Expand description
A route defines a rule that governs where traffic should be sent based on its destination.
Fields
description: Stringhuman-readable free-form text about a resource
destination: RouteDestinationid: Stringhuman-readable free-form text about a resource
kind: RouteKindThe classification of a [RouterRoute] as defined by the system. The kind determines certain attributes such as if the route is modifiable and describes how or where the route was created.
See RFD-21 for more context
name: Stringhuman-readable free-form text about a resource
router_id: Stringhuman-readable free-form text about a resource
target: RouteTargettime_created: Option<DateTime<Utc>>timestamp when this resource was created
time_modified: Option<DateTime<Utc>>timestamp when this resource was created
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Route
impl UnwindSafe for Route
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more