Struct rust_woocommerce::system_status::SystemStatus
source · pub struct SystemStatus {
pub environment: Environment,
pub database: Database,
pub active_plugins: Vec<Plugin>,
pub inactive_plugins: Option<Vec<Plugin>>,
pub theme: Theme,
pub settings: Settings,
pub security: Security,
pub pages: Vec<Page>,
}Expand description
#[cfg(test)]
mod tests {
use crate::{system_status::SystemStatus, ApiClient};
#[tokio::test]
async fn test_list_all_system_status() {
let client = ApiClient::from_env().unwrap();
let result = client
.list_all::<SystemStatus>(crate::Entity::SystemStatus)
.await
.unwrap();
assert_eq!(result.len(), 1);
}
}Fields§
§environment: EnvironmentEnvironment.
database: DatabaseDatabase.
active_plugins: Vec<Plugin>Active plugins.
inactive_plugins: Option<Vec<Plugin>>Inactive plugins.
theme: ThemeTheme.
settings: SettingsSettings.
security: SecuritySecurity.
pages: Vec<Page>WooCommerce pages.
Trait Implementations§
source§impl Clone for SystemStatus
impl Clone for SystemStatus
source§fn clone(&self) -> SystemStatus
fn clone(&self) -> SystemStatus
Returns a copy 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 SystemStatus
impl Debug for SystemStatus
source§impl<'de> Deserialize<'de> for SystemStatus
impl<'de> Deserialize<'de> for SystemStatus
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 SystemStatus
impl RefUnwindSafe for SystemStatus
impl Send for SystemStatus
impl Sync for SystemStatus
impl Unpin for SystemStatus
impl UnwindSafe for SystemStatus
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