pub struct ServerVersion {
pub major: u32,
pub minor: Option<u32>,
pub micro: Option<u32>,
pub string: String,
pub edition: Option<String>,
pub extended_support: Option<bool>,
}Expand description
Nextcloud server version information reported in capabilities.
Fields§
§major: u32Major release version.
minor: Option<u32>Minor release version, if present.
micro: Option<u32>Micro / patch release version, if present.
string: StringFull version string (e.g. "30.0.4").
edition: Option<String>Nextcloud edition (e.g. "Community" or "Enterprise"), if reported.
extended_support: Option<bool>Whether this server has extended support enabled.
Implementations§
Source§impl ServerVersion
impl ServerVersion
Sourcepub const fn extended_support(&self) -> Option<bool>
pub const fn extended_support(&self) -> Option<bool>
Whether extended support is active.
Trait Implementations§
Source§impl Clone for ServerVersion
impl Clone for ServerVersion
Source§impl Debug for ServerVersion
impl Debug for ServerVersion
Source§impl<'de> Deserialize<'de> for ServerVersion
impl<'de> Deserialize<'de> for ServerVersion
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 ServerVersion
Source§impl PartialEq for ServerVersion
impl PartialEq for ServerVersion
Source§impl Serialize for ServerVersion
impl Serialize for ServerVersion
impl StructuralPartialEq for ServerVersion
Auto Trait Implementations§
impl Freeze for ServerVersion
impl RefUnwindSafe for ServerVersion
impl Send for ServerVersion
impl Sync for ServerVersion
impl Unpin for ServerVersion
impl UnsafeUnpin for ServerVersion
impl UnwindSafe for ServerVersion
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