linkerd2_proxy_api/gen/
io.linkerd.proxy.tls_route.rs

1// This file is @generated by prost-build.
2/// Describes how to match an `SNI` ClientHello extension.
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct SniMatch {
5    #[prost(oneof = "sni_match::Match", tags = "1, 2")]
6    pub r#match: ::core::option::Option<sni_match::Match>,
7}
8/// Nested message and enum types in `SniMatch`.
9pub mod sni_match {
10    /// A match like `*.example.com` is encoded as \[com, example\].
11    #[derive(Clone, PartialEq, ::prost::Message)]
12    pub struct Suffix {
13        #[prost(string, repeated, tag = "1")]
14        pub reverse_labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
15    }
16    #[derive(Clone, PartialEq, ::prost::Oneof)]
17    pub enum Match {
18        /// Match an exact SNI, e.g. www.example.com.
19        #[prost(string, tag = "1")]
20        Exact(::prost::alloc::string::String),
21        /// Match a SNI as a wildcard suffix, e.g. *.example.com.
22        #[prost(message, tag = "2")]
23        Suffix(Suffix),
24    }
25}