pub struct WorkerPublicEndpoint {
pub name: String,
pub host_label: Option<String>,
pub wildcard_subdomains: bool,
}Expand description
Public endpoint configuration for Worker resources.
Fields§
§name: StringEndpoint name within the resource.
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 WorkerPublicEndpoint
impl WorkerPublicEndpoint
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 WorkerPublicEndpoint
impl Clone for WorkerPublicEndpoint
Source§fn clone(&self) -> WorkerPublicEndpoint
fn clone(&self) -> WorkerPublicEndpoint
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 WorkerPublicEndpoint
impl Debug for WorkerPublicEndpoint
Source§impl<'de> Deserialize<'de> for WorkerPublicEndpoint
impl<'de> Deserialize<'de> for WorkerPublicEndpoint
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 WorkerPublicEndpoint
Source§impl PartialEq for WorkerPublicEndpoint
impl PartialEq for WorkerPublicEndpoint
Source§fn eq(&self, other: &WorkerPublicEndpoint) -> bool
fn eq(&self, other: &WorkerPublicEndpoint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkerPublicEndpoint
impl Serialize for WorkerPublicEndpoint
impl StructuralPartialEq for WorkerPublicEndpoint
Auto Trait Implementations§
impl Freeze for WorkerPublicEndpoint
impl RefUnwindSafe for WorkerPublicEndpoint
impl Send for WorkerPublicEndpoint
impl Sync for WorkerPublicEndpoint
impl Unpin for WorkerPublicEndpoint
impl UnsafeUnpin for WorkerPublicEndpoint
impl UnwindSafe for WorkerPublicEndpoint
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.