pub struct TcpSocketAction {
pub host: Option<String>,
pub port: Option<IntOrString>,
}Expand description
TCPSocketAction describes an action based on opening a socket
Fields§
§host: Option<String>Optional: Host name to connect to, defaults to the pod IP. +optional
port: Option<IntOrString>Implementations§
Source§impl TcpSocketAction
impl TcpSocketAction
pub fn new() -> TcpSocketAction
Trait Implementations§
Source§impl Clone for TcpSocketAction
impl Clone for TcpSocketAction
Source§fn clone(&self) -> TcpSocketAction
fn clone(&self) -> TcpSocketAction
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 TcpSocketAction
impl Debug for TcpSocketAction
Source§impl<'de> Deserialize<'de> for TcpSocketAction
impl<'de> Deserialize<'de> for TcpSocketAction
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
Source§impl FromStr for TcpSocketAction
Converts Query Parameters representation (style=form, explode=false) to a TcpSocketAction value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for TcpSocketAction
Converts Query Parameters representation (style=form, explode=false) to a TcpSocketAction value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for TcpSocketAction
impl PartialEq for TcpSocketAction
Source§impl Serialize for TcpSocketAction
impl Serialize for TcpSocketAction
Source§impl ToString for TcpSocketAction
Converts the TcpSocketAction value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for TcpSocketAction
Converts the TcpSocketAction value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
Source§impl Validate for TcpSocketAction
impl Validate for TcpSocketAction
Source§impl<'v_a> ValidateArgs<'v_a> for TcpSocketAction
impl<'v_a> ValidateArgs<'v_a> for TcpSocketAction
impl StructuralPartialEq for TcpSocketAction
Auto Trait Implementations§
impl Freeze for TcpSocketAction
impl RefUnwindSafe for TcpSocketAction
impl Send for TcpSocketAction
impl Sync for TcpSocketAction
impl Unpin for TcpSocketAction
impl UnwindSafe for TcpSocketAction
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