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 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.
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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for BridgeNetwork
impl ComposeSchema for BridgeNetwork
Source§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<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 PartialEq for BridgeNetwork
impl PartialEq for BridgeNetwork
Source§impl Serialize for BridgeNetwork
impl Serialize for BridgeNetwork
Source§impl ToSchema for BridgeNetwork
impl ToSchema for BridgeNetwork
impl Eq for BridgeNetwork
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.