From 9b70e193e135ab58d79aacbdf7cd7694af811e12 Mon Sep 17 00:00:00 2001 From: Oguz Kocer Date: Wed, 22 May 2024 15:10:34 -0400 Subject: [PATCH] Add network-active PluginStatus variant --- wp_api/src/plugins.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp_api/src/plugins.rs b/wp_api/src/plugins.rs index 6a7191e4b..5d7bd0438 100644 --- a/wp_api/src/plugins.rs +++ b/wp_api/src/plugins.rs @@ -168,6 +168,8 @@ pub enum PluginStatus { Active, #[serde(rename = "inactive")] Inactive, + #[serde(rename = "network-active")] + NetworkActive, } impl PluginStatus { @@ -175,6 +177,7 @@ impl PluginStatus { match self { Self::Active => "active", Self::Inactive => "inactive", + Self::NetworkActive => "network-active", } } }