pub struct BridgeNetwork {
pub id: String,
pub name: String,
pub driver: BridgeNetworkDriver,
pub subnet: Option<String>,
pub labels: HashMap<String, String>,
pub internal: bool,
pub isolated: bool,
pub created_at: DateTime<Utc>,
}Expand description
A user-defined bridge or overlay network that containers can attach to.
Fields§
§id: StringOpaque server-generated identifier (UUID v4).
name: StringHuman-readable, unique name (must match ^[a-z0-9][a-z0-9_-]{0,63}$).
driver: BridgeNetworkDriverDriver backing the network (bridge vs. overlay).
subnet: Option<String>IPv4/IPv6 subnet in CIDR notation (e.g. "10.240.0.0/24").
labels: HashMap<String, String>Arbitrary key/value labels for filtering and grouping.
internal: boolIf true, containers attached to this network cannot reach the outside world — only other containers on the same network.
isolated: boolInter-network isolation (Docker-style): members of this network reach
each other and the internet (egress), but NOT other networks’ members
or arbitrary cluster services. Distinct from internal, which blocks
egress entirely. When false, the network rides the flat cluster overlay
mesh (today’s behavior).
created_at: DateTime<Utc>Creation timestamp (UTC, RFC 3339).
Trait Implementations§
Source§impl Clone for BridgeNetwork
impl Clone for BridgeNetwork
Source§fn clone(&self) -> BridgeNetwork
fn clone(&self) -> BridgeNetwork
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BridgeNetwork
impl Debug for BridgeNetwork
Source§impl<'de> Deserialize<'de> for BridgeNetwork
impl<'de> Deserialize<'de> for BridgeNetwork
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BridgeNetwork, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BridgeNetwork, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for BridgeNetwork
Source§impl PartialEq for BridgeNetwork
impl PartialEq for BridgeNetwork
Source§fn eq(&self, other: &BridgeNetwork) -> bool
fn eq(&self, other: &BridgeNetwork) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for BridgeNetwork
impl Serialize for BridgeNetwork
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for BridgeNetwork
Auto Trait Implementations§
impl Freeze for BridgeNetwork
impl RefUnwindSafe for BridgeNetwork
impl Send for BridgeNetwork
impl Sync for BridgeNetwork
impl Unpin for BridgeNetwork
impl UnsafeUnpin for BridgeNetwork
impl UnwindSafe for BridgeNetwork
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.