pub struct NicConfig {
pub name: String,
pub ip: String,
pub gateway: Option<String>,
}Expand description
Network interface configuration for cloud-init.
Fields§
§name: StringInterface name (eth0, eth1, …).
ip: StringStatic IP address with CIDR (e.g., “10.0.1.2/24”).
gateway: Option<String>Gateway IP (optional).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NicConfig
impl RefUnwindSafe for NicConfig
impl Send for NicConfig
impl Sync for NicConfig
impl Unpin for NicConfig
impl UnsafeUnpin for NicConfig
impl UnwindSafe for NicConfig
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