Skip to main content

ENTRADA_KEY_PORT

Constant ENTRADA_KEY_PORT 

Source
pub const ENTRADA_KEY_PORT: &str = "port";
Expand description

Canonical camelCase JSON/YAML top-level key for the crate::aplicacao::Entrada struct’s port destination-Servico port axis — the port: field the M3 Aplicacao’s #[serde(rename_all = "camelCase")] derive emits at the singleton :entrada block, defaulting via [crate::aplicacao::default_port] to crate::DEFAULT_SERVICO_PORT when the author omits the slot. Peer of ENTRADA_KEY_HOST on the same crate::aplicacao::Entrada singleton serialized-key axis; see ENTRADA_KEY_HOST for the full lift rationale. The Rust field is lowercase port; #[serde(rename_all = "camelCase")] is a no-op on this axis and the emitted key equals the source-side field name byte-for-byte.

Byte-identical to KUBE_KEY_PORT today — both resolve to the same four-byte "port" literal — but semantically distinct: KUBE_KEY_PORT names the K8s Service/ContainerPort per-resource port-discriminator axis, while this constant names the typed crate::aplicacao::Entrada singleton block’s Gateway-route destination-Servico port axis on the M3 Aplicacao surface. Splitting the two lets each schema’s future rebrand land independently.