pub struct Version {}
Expand description
Fetch detailed information about the Odoo version
Service: common
Method: version
Request: Version
Response: VersionResponse
This method returns some information about the Odoo version (represented in
the ServerVersionInfo
struct), along with some other metadata.
Odoo’s versioning was inspired by Python’s sys.version_info
,
with an added field to indicate whether the server is running Enterprise or
Community edition. In practice, minor
and micro
are typically both 0
,
so an Odoo version looks something like:
14.0.0.final.0.e
Example:
use odoo_api::types::common;
let request = common::version();
See: odoo/service/common.py
See also: odoo/service/common.py
See also: odoo/release.py
Trait Implementations§
source§impl<'de> Deserialize<'de> for Version
impl<'de> Deserialize<'de> for Version
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 OdooApiMethod for Version
impl OdooApiMethod for Version
§type Response = VersionResponse
type Response = VersionResponse
The response type (e.g., the
ExecuteResponse
for Execute
)source§fn describe_odoo_api_method(&self) -> (&'static str, &'static str)
fn describe_odoo_api_method(&self) -> (&'static str, &'static str)
Describes the Odoo API method (including the service) Read more
source§fn parse_json_response(&self, json_data: &str) -> Result<OdooApiResponse<Self>>
fn parse_json_response(&self, json_data: &str) -> Result<OdooApiResponse<Self>>
Parse some JSON string data into an
OdooApiResponse
object Read more