Struct k8s_openapi::v1_7::kubernetes::pkg::api::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 TCPSocketActionfn clone(&self) -> TCPSocketAction[src]
fn clone(&self) -> TCPSocketActionReturns 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 TCPSocketActionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for TCPSocketAction[src]
impl Default for TCPSocketActionfn default() -> TCPSocketAction[src]
fn default() -> TCPSocketActionReturns the "default value" for a type. Read more
impl PartialEq for TCPSocketAction[src]
impl PartialEq for TCPSocketActionfn eq(&self, other: &TCPSocketAction) -> bool[src]
fn eq(&self, other: &TCPSocketAction) -> boolThis 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) -> boolThis method tests for !=.
impl<'de> Deserialize<'de> for TCPSocketAction[src]
impl<'de> Deserialize<'de> for TCPSocketActionfn 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 TCPSocketActionAuto Trait Implementations
impl Send for TCPSocketAction
impl Send for TCPSocketActionimpl Sync for TCPSocketAction
impl Sync for TCPSocketAction