Struct k8s_openapi::v1_9::api::core::v1::TCPSocketAction [−][src]
pub struct TCPSocketAction { pub host: Option<String>, pub port: IntOrString, }
TCPSocketAction describes an action based on opening a socket
Fields
host: Option<String>
Optional: Host name to connect to, defaults to the pod IP.
port: IntOrString
Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
Trait Implementations
impl Clone for TCPSocketAction
[src]
impl Clone for TCPSocketAction
fn clone(&self) -> TCPSocketAction
[src]
fn clone(&self) -> TCPSocketAction
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for TCPSocketAction
[src]
impl Debug for TCPSocketAction
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for TCPSocketAction
[src]
impl Default for TCPSocketAction
fn default() -> TCPSocketAction
[src]
fn default() -> TCPSocketAction
Returns the "default value" for a type. Read more
impl PartialEq for TCPSocketAction
[src]
impl PartialEq for TCPSocketAction
fn eq(&self, other: &TCPSocketAction) -> bool
[src]
fn eq(&self, other: &TCPSocketAction) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TCPSocketAction) -> bool
[src]
fn ne(&self, other: &TCPSocketAction) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for TCPSocketAction
[src]
impl<'de> Deserialize<'de> for TCPSocketAction
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for TCPSocketAction
[src]
impl Serialize for TCPSocketAction
Auto Trait Implementations
impl Send for TCPSocketAction
impl Send for TCPSocketAction
impl Sync for TCPSocketAction
impl Sync for TCPSocketAction