pub struct RawMmdsConfig {
pub version: MmdsVersion,
pub network_interfaces: Vec<String>,
pub ipv4_address: Option<Ipv4Addr>,
pub imds_compat: bool,
pub token_ttl_seconds: Option<u64>,
}Expand description
Raw /mmds/config PUT body off the wire.
Fields§
§version: MmdsVersionMMDS protocol version.
network_interfaces: Vec<String>IDs of network interfaces the dumbo intercept binds to.
ipv4_address: Option<Ipv4Addr>Optional IMDS link-local address; default 169.254.169.254.
imds_compat: boolimds_compat overrides the Accept header to plain text.
token_ttl_seconds: Option<u64>V2 token TTL in seconds (1..=21600); ignored for V1.
Trait Implementations§
Source§impl Clone for RawMmdsConfig
impl Clone for RawMmdsConfig
Source§fn clone(&self) -> RawMmdsConfig
fn clone(&self) -> RawMmdsConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RawMmdsConfig
impl Debug for RawMmdsConfig
Source§impl<'de> Deserialize<'de> for RawMmdsConfig
impl<'de> Deserialize<'de> for RawMmdsConfig
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 TryFrom<RawMmdsConfig> for MmdsConfig
impl TryFrom<RawMmdsConfig> for MmdsConfig
Auto Trait Implementations§
impl Freeze for RawMmdsConfig
impl RefUnwindSafe for RawMmdsConfig
impl Send for RawMmdsConfig
impl Sync for RawMmdsConfig
impl Unpin for RawMmdsConfig
impl UnsafeUnpin for RawMmdsConfig
impl UnwindSafe for RawMmdsConfig
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