diff options
Diffstat (limited to 'crates/rocie-client/src/models/login_info.rs')
| -rw-r--r-- | crates/rocie-client/src/models/login_info.rs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/crates/rocie-client/src/models/login_info.rs b/crates/rocie-client/src/models/login_info.rs new file mode 100644 index 0000000..5aef74e --- /dev/null +++ b/crates/rocie-client/src/models/login_info.rs @@ -0,0 +1,32 @@ +/* + * rocie-server + * + * An enterprise grocery management system - server + * + * The version of the OpenAPI document: 0.1.0 + * Contact: benedikt.peetz@b-peetz.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LoginInfo { + /// The id of the user. + #[serde(rename = "id")] + pub id: models::UserId, + /// The password of the user. + #[serde(rename = "password")] + pub password: String, +} + +impl LoginInfo { + pub fn new(id: models::UserId, password: String) -> LoginInfo { + LoginInfo { + id, + password, + } + } +} + |
