#[non_exhaustive]pub struct Host {
pub host: String,
pub url: String,
pub certificate_source: CertificateSource,
pub certificate_expire_time: Option<Timestamp>,
pub unavailable_message: String,
}Expand description
A host of Project::routes, with its certificate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.host: StringAs x-pethost.routes[].host.
url: String"https://<host>" once its certificate is served, and plain HTTP is redirected there; until then "http://<host>", which reaches the services. For AUTOMATIC, the host must resolve to the machine first. A protected project (Project::password_protected) is never served over plain HTTP: it is always redirected, so the host answers only once its certificate is served.
certificate_source: CertificateSource§certificate_expire_time: Option<Timestamp>When the certificate served expires. Absent = none is served yet.
Why the host answers nobody: a name under the panel’s domain that is not one label under Machine::apps_domain (another account’s, a former apps_domain of this one, or two labels deep). Change its host. Empty = it answers, or it is the person’s own domain.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Host
From the API’s JSON. A field this version does not know is refused, as the API
refuses one it does not have.
impl<'de> Deserialize<'de> for Host
From the API’s JSON. A field this version does not know is refused, as the API refuses one it does not have.
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl Serialize for Host
As the API’s JSON: the proto’s field names, an enum as its value’s name, a 64-bit
integer as a string, a time as RFC 3339, bytes as base64.
impl Serialize for Host
As the API’s JSON: the proto’s field names, an enum as its value’s name, a 64-bit integer as a string, a time as RFC 3339, bytes as base64.