pub struct ServerVersionInfo {
pub major: u32,
pub minor: u32,
pub micro: u32,
pub release_level: String,
pub serial: u32,
pub enterprise: Option<String>,
}
Expand description
A struct representing the Odoo server version info
See: odoo/services/common.py
See also: odoo/release.py
Fields§
§major: u32
The “major” version (e.g., 16
)
minor: u32
The “minor” version (e.g., 0
)
micro: u32
The “micro” version (e.g., 0
)
release_level: String
The “release level”; one of alpha
, beta
, candidate
, or final
. For live servers, this is almost always final
serial: u32
The release serial
enterprise: Option<String>
A string indicating whether Odoo is running in Enterprise or Community mode; None
= Community, Some(“e”) = Enterprise
Trait Implementations§
source§impl Debug for ServerVersionInfo
impl Debug for ServerVersionInfo
source§impl<'de> Deserialize<'de> for ServerVersionInfo
impl<'de> Deserialize<'de> for ServerVersionInfo
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 PartialEq<ServerVersionInfo> for ServerVersionInfo
impl PartialEq<ServerVersionInfo> for ServerVersionInfo
source§fn eq(&self, other: &ServerVersionInfo) -> bool
fn eq(&self, other: &ServerVersionInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.