pub struct TenantNet {
pub tenant_net_id: u16,
pub ipv4_subnet: String,
pub gateway_ip: String,
pub bridge_name: String,
}Expand description
Coordinator-assigned, cluster-wide network identity for a tenant. Agents MUST consume this verbatim — never derive or hash IPs locally.
Fields§
§tenant_net_id: u16Cluster-unique integer (0..4095), assigned by coordinator.
ipv4_subnet: StringCoordinator-assigned CIDR, e.g. “10.240.3.0/24”.
gateway_ip: StringFirst usable IP in subnet, e.g. “10.240.3.1”.
bridge_name: StringBridge name derived from tenant_net_id, e.g. “br-tenant-3”.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TenantNet
impl<'de> Deserialize<'de> for TenantNet
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
Auto Trait Implementations§
impl Freeze for TenantNet
impl RefUnwindSafe for TenantNet
impl Send for TenantNet
impl Sync for TenantNet
impl Unpin for TenantNet
impl UnsafeUnpin for TenantNet
impl UnwindSafe for TenantNet
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