Changed unit bathrooms to decimal
This commit is contained in:
parent
faf73034a0
commit
12a2c0ef8f
|
@ -17,7 +17,7 @@ pub struct Unit {
|
||||||
/// Amount of rooms in unit
|
/// Amount of rooms in unit
|
||||||
pub rooms: i16,
|
pub rooms: i16,
|
||||||
/// Amount of bathrooms in unit
|
/// Amount of bathrooms in unit
|
||||||
pub bathrooms: i16,
|
pub bathrooms: f32,
|
||||||
/// In meters squared
|
/// In meters squared
|
||||||
pub area: f32,
|
pub area: f32,
|
||||||
pub description: String,
|
pub description: String,
|
||||||
|
|
|
@ -16,7 +16,7 @@ pub struct NewUnitPayload {
|
||||||
/// Amount of rooms in unit
|
/// Amount of rooms in unit
|
||||||
pub rooms: i16,
|
pub rooms: i16,
|
||||||
/// Amount of bathrooms in unit
|
/// Amount of bathrooms in unit
|
||||||
pub bathrooms: i16,
|
pub bathrooms: f32,
|
||||||
/// In meters squared
|
/// In meters squared
|
||||||
pub area: f32,
|
pub area: f32,
|
||||||
pub description: String,
|
pub description: String,
|
||||||
|
@ -35,7 +35,7 @@ pub struct UpdateUnitPayload {
|
||||||
/// Amount of rooms in unit
|
/// Amount of rooms in unit
|
||||||
pub rooms: Option<i16>,
|
pub rooms: Option<i16>,
|
||||||
/// Amount of bathrooms in unit
|
/// Amount of bathrooms in unit
|
||||||
pub bathrooms: Option<i16>,
|
pub bathrooms: Option<f32>,
|
||||||
/// In meters squared
|
/// In meters squared
|
||||||
pub area: Option<f32>,
|
pub area: Option<f32>,
|
||||||
pub description: Option<String>,
|
pub description: Option<String>,
|
||||||
|
|
Loading…
Reference in New Issue