pub struct Vlan {
pub cidr: String,
pub internet: Option<bool>,
}Expand description
A VLAN of a LAN (see Network::vlans).
Fields§
§cidr: StringIts IPv4 block, inside the LAN’s (e.g. 10.10.10.0/24 in 10.10.0.0/16).
internet: Option<bool>Whether machines on it may reach the internet (default: as the LAN).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vlan
impl<'de> Deserialize<'de> for Vlan
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 JsonSchema for Vlan
impl JsonSchema for Vlan
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Vlan
Auto Trait Implementations§
impl Freeze for Vlan
impl RefUnwindSafe for Vlan
impl Send for Vlan
impl Sync for Vlan
impl Unpin for Vlan
impl UnsafeUnpin for Vlan
impl UnwindSafe for Vlan
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