pub struct PublicEndpoint {
pub name: String,
pub port: u16,
pub protocol: ExposeProtocol,
pub host_label: Option<String>,
pub wildcard_subdomains: bool,
}Expand description
Public endpoint configuration for port-backed workload resources.
Fields§
§name: StringEndpoint name within the resource.
port: u16Workload port served by the public endpoint.
protocol: ExposeProtocolPublic protocol.
host_label: Option<String>Optional DNS label override for generated endpoint hostnames.
wildcard_subdomains: boolWhether to route wildcard subdomains to this endpoint.
Implementations§
Source§impl PublicEndpoint
impl PublicEndpoint
Sourcepub fn effective_host_label(&self) -> &str
pub fn effective_host_label(&self) -> &str
Returns the DNS label used for generated hostnames.
Sourcepub fn validate_for_resource(&self, resource_id: &str) -> Result<()>
pub fn validate_for_resource(&self, resource_id: &str) -> Result<()>
Validates the endpoint options for a resource.
Trait Implementations§
Source§impl Clone for PublicEndpoint
impl Clone for PublicEndpoint
Source§fn clone(&self) -> PublicEndpoint
fn clone(&self) -> PublicEndpoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PublicEndpoint
impl Debug for PublicEndpoint
Source§impl<'de> Deserialize<'de> for PublicEndpoint
impl<'de> Deserialize<'de> for PublicEndpoint
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PublicEndpoint
Source§impl PartialEq for PublicEndpoint
impl PartialEq for PublicEndpoint
Source§fn eq(&self, other: &PublicEndpoint) -> bool
fn eq(&self, other: &PublicEndpoint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PublicEndpoint
impl Serialize for PublicEndpoint
impl StructuralPartialEq for PublicEndpoint
Auto Trait Implementations§
impl Freeze for PublicEndpoint
impl RefUnwindSafe for PublicEndpoint
impl Send for PublicEndpoint
impl Sync for PublicEndpoint
impl Unpin for PublicEndpoint
impl UnsafeUnpin for PublicEndpoint
impl UnwindSafe for PublicEndpoint
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.