pub fn gateway_service_target_from_str(s: &str) -> Option<GatewayServiceTarget>Expand description
Parses a single gatewayClass target: either namespace/name (explicit
Service) or namespace/<label-selector> (any entry whose Service part
contains =, since Service names never do).
The namespace is the segment before the first /; namespaces cannot contain
/, so a label selector’s own / (e.g. app.kubernetes.io/name=x) is
preserved. Returns None for empty namespace or empty target.