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