pub struct DomainSpec {
pub host: String,
pub path: Option<String>,
pub port: Option<u16>,
pub https: Option<bool>,
pub redirect: Option<String>,
pub strip_prefix: bool,
pub www_redirect: bool,
}Expand description
A hostname (and path) the ingress serves a service on.
Fields§
§host: StringThe hostname, e.g. app.example.com; *.example.com where the org
allows wildcards; or auto for a generated
<service>-<stack>-<org>.<ip>.sslip.io name.
path: Option<String>Path prefix (default /): /api matches /api and /api/....
port: Option<u16>The port the service listens on inside its replicas. Not needed with
redirect.
https: Option<bool>Serve over HTTPS with a certificate the ingress obtains (default
true), redirecting plain HTTP to it. false serves plain HTTP.
redirect: Option<String>Answer every request with a permanent redirect (308) to this URL
instead of proxying. A URL without a path keeps the request’s path
and query (https://example.com); one with a path is used as is.
strip_prefix: boolRemove path from the request before passing it on.
www_redirect: boolAlso serve www.<host>, redirecting it to host.
Trait Implementations§
Source§impl Clone for DomainSpec
impl Clone for DomainSpec
Source§impl Debug for DomainSpec
impl Debug for DomainSpec
Source§impl Default for DomainSpec
impl Default for DomainSpec
Source§impl<'de> Deserialize<'de> for DomainSpec
impl<'de> Deserialize<'de> for DomainSpec
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>,
impl Eq for DomainSpec
Source§impl JsonSchema for DomainSpec
impl JsonSchema for DomainSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for DomainSpec
impl PartialEq for DomainSpec
Source§impl Serialize for DomainSpec
impl Serialize for DomainSpec
impl StructuralPartialEq for DomainSpec
Auto Trait Implementations§
impl Freeze for DomainSpec
impl RefUnwindSafe for DomainSpec
impl Send for DomainSpec
impl Sync for DomainSpec
impl Unpin for DomainSpec
impl UnsafeUnpin for DomainSpec
impl UnwindSafe for DomainSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.