pub struct NetworkResponse {
pub id: Uuid,
pub name: String,
pub enabled: bool,
pub management: String,
pub vlan_id: i32,
pub default: bool,
pub metadata: Value,
pub extra: HashMap<String, Value>,
}Expand description
Network overview — from GET /v1/sites/{siteId}/networks.
GATEWAY networks include top-level fields like isolationEnabled,
internetAccessEnabled, ipv4Configuration, ipv6Configuration, etc.
These are captured in extra via #[serde(flatten)].
Fields§
§id: Uuid§name: String§enabled: bool§management: StringOne of: USER_DEFINED, SYSTEM_DEFINED, ORCHESTRATED.
vlan_id: i32§default: bool§metadata: Value§extra: HashMap<String, Value>Catch-all for management-type-specific fields (GATEWAY: ipv4Configuration, ipv6Configuration, isolationEnabled, etc.; SWITCH: deviceId, natOutbound, etc.)
Trait Implementations§
Source§impl Clone for NetworkResponse
impl Clone for NetworkResponse
Source§fn clone(&self) -> NetworkResponse
fn clone(&self) -> NetworkResponse
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 Debug for NetworkResponse
impl Debug for NetworkResponse
Source§impl<'de> Deserialize<'de> for NetworkResponse
impl<'de> Deserialize<'de> for NetworkResponse
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 From<NetworkResponse> for Network
impl From<NetworkResponse> for Network
Source§fn from(n: NetworkResponse) -> Self
fn from(n: NetworkResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NetworkResponse
impl PartialEq for NetworkResponse
Source§impl Serialize for NetworkResponse
impl Serialize for NetworkResponse
impl StructuralPartialEq for NetworkResponse
Auto Trait Implementations§
impl Freeze for NetworkResponse
impl RefUnwindSafe for NetworkResponse
impl Send for NetworkResponse
impl Sync for NetworkResponse
impl Unpin for NetworkResponse
impl UnsafeUnpin for NetworkResponse
impl UnwindSafe for NetworkResponse
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