pub struct ServerVersion {}
Expand description
Return the server version
This returns the “base” server version, e.g., 14.0
or 15.0
. It does not
include any indication of whether the database is Community or Enterprise
§Example
let resp = client.db_server_version().send()?;
println!("Version: {}", resp.version);
Reference: odoo/service/db.py
Trait Implementations§
Source§impl Debug for ServerVersion
impl Debug for ServerVersion
Source§impl JsonRpcParams for ServerVersion
impl JsonRpcParams for ServerVersion
type Container<T> = OdooApiContainer<ServerVersion>
type Response = ServerVersionResponse
fn build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Source§impl OdooApiMethod for ServerVersion
impl OdooApiMethod for ServerVersion
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 ServerVersion
impl RefUnwindSafe for ServerVersion
impl Send for ServerVersion
impl Sync for ServerVersion
impl Unpin 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