pub struct DockerNetwork {
pub cidr: Option<String>,
pub external: Option<String>,
}Expand description
A network on Docker.
Fields§
§cidr: Option<String>The block to use on Docker instead of cidr (same size, inside 10.0.0.0/8). Without it,
a network outside 10.0.0.0/8 moves into it (Docker Desktop and home networks use
172.16.0.0/12 and 192.168.0.0/16).
external: Option<String>An existing Docker network, by name: the machines join it, and Isoloom never creates or removes it.
Trait Implementations§
Source§impl Clone for DockerNetwork
impl Clone for DockerNetwork
Source§impl Debug for DockerNetwork
impl Debug for DockerNetwork
Source§impl Default for DockerNetwork
impl Default for DockerNetwork
Source§impl<'de> Deserialize<'de> for DockerNetwork
impl<'de> Deserialize<'de> for DockerNetwork
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 DockerNetwork
impl JsonSchema for DockerNetwork
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 moreSource§impl PartialEq for DockerNetwork
impl PartialEq for DockerNetwork
impl StructuralPartialEq for DockerNetwork
Auto Trait Implementations§
impl Freeze for DockerNetwork
impl RefUnwindSafe for DockerNetwork
impl Send for DockerNetwork
impl Sync for DockerNetwork
impl Unpin for DockerNetwork
impl UnsafeUnpin for DockerNetwork
impl UnwindSafe for DockerNetwork
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