pub struct ListLang {}
Expand description
List the languages available to Odoo (ISO name + code)
Note that this function is used by the database manager, in order to let the user select which language should be used when creating a new database.
§Example
let resp = client.db_list_lang().send()?;
println!("Languages: {:#?}", resp.languages);
Reference: odoo/service/db.py
Trait Implementations§
Source§impl JsonRpcParams for ListLang
impl JsonRpcParams for ListLang
type Container<T> = OdooApiContainer<ListLang>
type Response = ListLangResponse
fn build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Source§impl OdooApiMethod for ListLang
impl OdooApiMethod for ListLang
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 ListLang
impl RefUnwindSafe for ListLang
impl Send for ListLang
impl Sync for ListLang
impl Unpin for ListLang
impl UnwindSafe for ListLang
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