pub struct CreateDatabase {
pub passwd: String,
pub db_name: String,
pub demo: bool,
pub lang: String,
pub user_password: String,
pub login: String,
pub country_code: Option<String>,
pub phone: Option<String>,
}
Expand description
Create and initialize a new database
Service: db
Method: create_database
Request: CreateDatabase
Response: CreateDatabaseResponse
Docs TBC
Reference: odoo/service/db.py
Fields§
§passwd: String
§db_name: String
§demo: bool
§lang: String
§user_password: String
§login: String
§country_code: Option<String>
§phone: Option<String>
Trait Implementations§
source§impl Debug for CreateDatabase
impl Debug for CreateDatabase
source§impl<'de> Deserialize<'de> for CreateDatabase
impl<'de> Deserialize<'de> for CreateDatabase
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 CreateDatabase
impl OdooApiMethod for CreateDatabase
§type Response = CreateDatabaseResponse
type Response = CreateDatabaseResponse
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 moresource§impl PartialEq<CreateDatabase> for CreateDatabase
impl PartialEq<CreateDatabase> for CreateDatabase
source§fn eq(&self, other: &CreateDatabase) -> bool
fn eq(&self, other: &CreateDatabase) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.