#[non_exhaustive]pub struct EndpointConfig {
pub http_ports: HashMap<String, String>,
pub enable_http_port_access: bool,
/* private fields */
}Expand description
Endpoint config for this cluster
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.http_ports: HashMap<String, String>Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.
enable_http_port_access: boolOptional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false.
Implementations§
Source§impl EndpointConfig
impl EndpointConfig
pub fn new() -> Self
Sourcepub fn set_http_ports<T, K, V>(self, v: T) -> Self
pub fn set_http_ports<T, K, V>(self, v: T) -> Self
Sets the value of http_ports.
Sourcepub fn set_enable_http_port_access<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_http_port_access<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_http_port_access.
Trait Implementations§
Source§impl Clone for EndpointConfig
impl Clone for EndpointConfig
Source§fn clone(&self) -> EndpointConfig
fn clone(&self) -> EndpointConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 EndpointConfig
impl Debug for EndpointConfig
Source§impl Default for EndpointConfig
impl Default for EndpointConfig
Source§fn default() -> EndpointConfig
fn default() -> EndpointConfig
Returns the “default value” for a type. Read more
Source§impl Message for EndpointConfig
impl Message for EndpointConfig
Source§impl PartialEq for EndpointConfig
impl PartialEq for EndpointConfig
impl StructuralPartialEq for EndpointConfig
Auto Trait Implementations§
impl Freeze for EndpointConfig
impl RefUnwindSafe for EndpointConfig
impl Send for EndpointConfig
impl Sync for EndpointConfig
impl Unpin for EndpointConfig
impl UnwindSafe for EndpointConfig
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