pub struct Version {}
Expand description
Fetch detailed information about the Odoo version
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
let resp = client.common_version().send()?;
println!("Version Info: {:#?}", resp);
See: odoo/service/common.py
See also: odoo/service/common.py
See also: odoo/release.py
Trait Implementations§
Source§impl JsonRpcParams for Version
impl JsonRpcParams for Version
type Container<T> = OdooApiContainer<Version>
type Response = VersionResponse
fn build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Source§impl OdooApiMethod for Version
impl OdooApiMethod for Version
Source§fn describe(&self) -> (&'static str, &'static str)
fn describe(&self) -> (&'static str, &'static str)
Describe the JSON-RPC service and method for this type
Source§fn endpoint(&self) -> &'static str
fn endpoint(&self) -> &'static str
Describe method endpoint (e.g., “/web/session/authenticate”)
Source§fn _build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
fn _build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Build
self
into a full JsonRpcRequest
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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