pub struct HostAlias {
pub hostnames: Option<Vec<String>>,
pub ip: Option<String>,
}Expand description
HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod’s hosts file.
Fields§
§hostnames: Option<Vec<String>>Hostnames for the above IP address.
ip: Option<String>IP address of the host file entry.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HostAlias
impl<'de> Deserialize<'de> for HostAlias
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 HostAlias
Converts Query Parameters representation (style=form, explode=false) to a HostAlias value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for HostAlias
Converts Query Parameters representation (style=form, explode=false) to a HostAlias value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl ToString for HostAlias
Converts the HostAlias 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 HostAlias
Converts the HostAlias 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<'v_a> ValidateArgs<'v_a> for HostAlias
impl<'v_a> ValidateArgs<'v_a> for HostAlias
impl StructuralPartialEq for HostAlias
Auto Trait Implementations§
impl Freeze for HostAlias
impl RefUnwindSafe for HostAlias
impl Send for HostAlias
impl Sync for HostAlias
impl Unpin for HostAlias
impl UnwindSafe for HostAlias
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