#[non_exhaustive]pub struct ProxyConnectionInfo {
pub protocol: String,
pub old_source_ip: String,
pub new_source_ip: String,
pub old_destination_ip: String,
pub new_destination_ip: String,
pub old_source_port: i32,
pub new_source_port: i32,
pub old_destination_port: i32,
pub new_destination_port: i32,
pub subnet_uri: String,
pub network_uri: String,
/* private fields */
}Expand description
For display only. Metadata associated with ProxyConnection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.protocol: StringIP protocol in string format, for example: “TCP”, “UDP”, “ICMP”.
old_source_ip: StringSource IP address of an original connection.
new_source_ip: StringSource IP address of a new connection.
old_destination_ip: StringDestination IP address of an original connection
new_destination_ip: StringDestination IP address of a new connection.
old_source_port: i32Source port of an original connection. Only valid when protocol is TCP or UDP.
new_source_port: i32Source port of a new connection. Only valid when protocol is TCP or UDP.
old_destination_port: i32Destination port of an original connection. Only valid when protocol is TCP or UDP.
new_destination_port: i32Destination port of a new connection. Only valid when protocol is TCP or UDP.
subnet_uri: StringUri of proxy subnet.
network_uri: StringURI of the network where connection is proxied.
Implementations§
Source§impl ProxyConnectionInfo
impl ProxyConnectionInfo
Sourcepub fn set_protocol<T: Into<String>>(self, v: T) -> Self
pub fn set_protocol<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_old_source_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_old_source_ip<T: Into<String>>(self, v: T) -> Self
Sets the value of old_source_ip.
§Example
let x = ProxyConnectionInfo::new().set_old_source_ip("example");Sourcepub fn set_new_source_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_new_source_ip<T: Into<String>>(self, v: T) -> Self
Sets the value of new_source_ip.
§Example
let x = ProxyConnectionInfo::new().set_new_source_ip("example");Sourcepub fn set_old_destination_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_old_destination_ip<T: Into<String>>(self, v: T) -> Self
Sets the value of old_destination_ip.
§Example
let x = ProxyConnectionInfo::new().set_old_destination_ip("example");Sourcepub fn set_new_destination_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_new_destination_ip<T: Into<String>>(self, v: T) -> Self
Sets the value of new_destination_ip.
§Example
let x = ProxyConnectionInfo::new().set_new_destination_ip("example");Sourcepub fn set_old_source_port<T: Into<i32>>(self, v: T) -> Self
pub fn set_old_source_port<T: Into<i32>>(self, v: T) -> Self
Sets the value of old_source_port.
§Example
let x = ProxyConnectionInfo::new().set_old_source_port(42);Sourcepub fn set_new_source_port<T: Into<i32>>(self, v: T) -> Self
pub fn set_new_source_port<T: Into<i32>>(self, v: T) -> Self
Sets the value of new_source_port.
§Example
let x = ProxyConnectionInfo::new().set_new_source_port(42);Sourcepub fn set_old_destination_port<T: Into<i32>>(self, v: T) -> Self
pub fn set_old_destination_port<T: Into<i32>>(self, v: T) -> Self
Sets the value of old_destination_port.
§Example
let x = ProxyConnectionInfo::new().set_old_destination_port(42);Sourcepub fn set_new_destination_port<T: Into<i32>>(self, v: T) -> Self
pub fn set_new_destination_port<T: Into<i32>>(self, v: T) -> Self
Sets the value of new_destination_port.
§Example
let x = ProxyConnectionInfo::new().set_new_destination_port(42);Sourcepub fn set_subnet_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_subnet_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of subnet_uri.
§Example
let x = ProxyConnectionInfo::new().set_subnet_uri("example");Sourcepub fn set_network_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_network_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of network_uri.
§Example
let x = ProxyConnectionInfo::new().set_network_uri("example");Trait Implementations§
Source§impl Clone for ProxyConnectionInfo
impl Clone for ProxyConnectionInfo
Source§fn clone(&self) -> ProxyConnectionInfo
fn clone(&self) -> ProxyConnectionInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProxyConnectionInfo
impl Debug for ProxyConnectionInfo
Source§impl Default for ProxyConnectionInfo
impl Default for ProxyConnectionInfo
Source§fn default() -> ProxyConnectionInfo
fn default() -> ProxyConnectionInfo
Source§impl Message for ProxyConnectionInfo
impl Message for ProxyConnectionInfo
Source§impl PartialEq for ProxyConnectionInfo
impl PartialEq for ProxyConnectionInfo
Source§fn eq(&self, other: &ProxyConnectionInfo) -> bool
fn eq(&self, other: &ProxyConnectionInfo) -> bool
self and other values to be equal, and is used by ==.