pub struct ServiceExposeView {
pub service_type: Option<String>,
pub node_port: Option<u16>,
pub host_port: Option<u16>,
pub local_port: Option<u16>,
pub port_forward: Option<bool>,
pub dns_hosts: Vec<String>,
pub dns_mode: Option<String>,
}Expand description
Public / local routing for a bootstrap Service + post-deploy access.
Fields§
§service_type: Option<String>Kubernetes Service type: ClusterIP (default), NodePort, or LoadBalancer.
node_port: Option<u16>Fixed NodePort (30000–32767) when service_type = NodePort.
host_port: Option<u16>Optional hostPort on the Pod (useful for docker-desktop single-node).
local_port: Option<u16>Local port for kubectl port-forward (default: container_port).
port_forward: Option<bool>Start kubectl port-forward after successful rollout (default true when local_port set, else false).
dns_hosts: Vec<String>Hostnames for local DNS (/etc/hosts or Windows hosts) → 127.0.0.1 after port-forward.
dns_mode: Option<String>DNS write mode: hosts (default when dns_hosts set), none, or cloudflare (A record, best-effort).
Trait Implementations§
Source§impl Clone for ServiceExposeView
impl Clone for ServiceExposeView
Source§fn clone(&self) -> ServiceExposeView
fn clone(&self) -> ServiceExposeView
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 ServiceExposeView
impl Debug for ServiceExposeView
Source§impl Default for ServiceExposeView
impl Default for ServiceExposeView
Source§fn default() -> ServiceExposeView
fn default() -> ServiceExposeView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceExposeView
impl<'de> Deserialize<'de> for ServiceExposeView
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
Auto Trait Implementations§
impl Freeze for ServiceExposeView
impl RefUnwindSafe for ServiceExposeView
impl Send for ServiceExposeView
impl Sync for ServiceExposeView
impl Unpin for ServiceExposeView
impl UnsafeUnpin for ServiceExposeView
impl UnwindSafe for ServiceExposeView
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