pub struct ServerAddressByClientCIDR {
pub client_cidr: String,
pub server_address: String,
}
Expand description
ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.
Fields§
§client_cidr: String
The CIDR with which clients can match their IP to figure out the server address that they should use.
server_address: String
Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.
Trait Implementations§
Source§impl Clone for ServerAddressByClientCIDR
impl Clone for ServerAddressByClientCIDR
Source§fn clone(&self) -> ServerAddressByClientCIDR
fn clone(&self) -> ServerAddressByClientCIDR
Returns a copy 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 ServerAddressByClientCIDR
impl Debug for ServerAddressByClientCIDR
Source§impl DeepMerge for ServerAddressByClientCIDR
impl DeepMerge for ServerAddressByClientCIDR
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for ServerAddressByClientCIDR
impl Default for ServerAddressByClientCIDR
Source§fn default() -> ServerAddressByClientCIDR
fn default() -> ServerAddressByClientCIDR
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerAddressByClientCIDR
impl<'de> Deserialize<'de> for ServerAddressByClientCIDR
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
impl StructuralPartialEq for ServerAddressByClientCIDR
Auto Trait Implementations§
impl Freeze for ServerAddressByClientCIDR
impl RefUnwindSafe for ServerAddressByClientCIDR
impl Send for ServerAddressByClientCIDR
impl Sync for ServerAddressByClientCIDR
impl Unpin for ServerAddressByClientCIDR
impl UnwindSafe for ServerAddressByClientCIDR
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