pub struct ServerStatus {
pub installed: bool,
pub maintenance: bool,
pub needs_db_upgrade: bool,
pub version: Option<String>,
pub version_string: Option<String>,
pub edition: Option<String>,
pub product_name: Option<String>,
}Expand description
Operational status and runtime state of the Nextcloud instance.
Fields§
§installed: boolWhether Nextcloud is installed and configured.
maintenance: boolWhether the instance is in maintenance mode.
needs_db_upgrade: boolWhether the database requires a pending migration or upgrade.
version: Option<String>Precise version string (e.g. "30.0.4.1").
version_string: Option<String>Human-readable version string (e.g. "30.0.4").
edition: Option<String>Server edition (e.g. "Community").
product_name: Option<String>Product branding name (e.g. "Nextcloud").
Implementations§
Source§impl ServerStatus
impl ServerStatus
Sourcepub const fn is_installed(&self) -> bool
pub const fn is_installed(&self) -> bool
Whether the instance is installed and operational.
Sourcepub const fn is_maintenance(&self) -> bool
pub const fn is_maintenance(&self) -> bool
Whether maintenance mode is enabled.
Sourcepub const fn needs_db_upgrade(&self) -> bool
pub const fn needs_db_upgrade(&self) -> bool
Whether the instance is awaiting a database upgrade.
Sourcepub fn version_string(&self) -> Option<&str>
pub fn version_string(&self) -> Option<&str>
Human-readable version string.
Sourcepub fn product_name(&self) -> Option<&str>
pub fn product_name(&self) -> Option<&str>
Product brand name.
Trait Implementations§
Source§impl Clone for ServerStatus
impl Clone for ServerStatus
Source§impl Debug for ServerStatus
impl Debug for ServerStatus
Source§impl<'de> Deserialize<'de> for ServerStatus
impl<'de> Deserialize<'de> for ServerStatus
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
impl Eq for ServerStatus
Source§impl PartialEq for ServerStatus
impl PartialEq for ServerStatus
Source§impl Serialize for ServerStatus
impl Serialize for ServerStatus
impl StructuralPartialEq for ServerStatus
Auto Trait Implementations§
impl Freeze for ServerStatus
impl RefUnwindSafe for ServerStatus
impl Send for ServerStatus
impl Sync for ServerStatus
impl Unpin for ServerStatus
impl UnsafeUnpin for ServerStatus
impl UnwindSafe for ServerStatus
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