The ConnectionSettings struct is missing the base type of the connection, which is provided by NetworkManager as a string: "802-3-ethernet", "802-11-wireless", "bluetooth", "vpn", "bridge", etc.
No defined enumeration exists in NetworkManager, so for now we can use the provided strings directly. Later on we can implement that as a Rust enum.
Since type is a reserved word in Rust we can either add the field as kind or type_.
The
ConnectionSettings
struct is missing the base type of the connection, which is provided by NetworkManager as a string: "802-3-ethernet", "802-11-wireless", "bluetooth", "vpn", "bridge", etc.No defined enumeration exists in NetworkManager, so for now we can use the provided strings directly. Later on we can implement that as a Rust enum.
Since
type
is a reserved word in Rust we can either add the field askind
ortype_
.