diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-12-09 13:01:20 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-12-09 13:01:20 +0100 |
| commit | 24a1c946b7017237627d69d293c05237d9b96ca5 (patch) | |
| tree | fc9669287a86df5bc863507743ca9961519bef86 /crates/rocie-client/src/models/user_stub.rs | |
| parent | chore(crates/rocie-client): Re-generate (diff) | |
| download | server-24a1c946b7017237627d69d293c05237d9b96ca5.zip | |
chore(rocie-client): Regenerate
This also adds cookie persisting to the default configuration.
Diffstat (limited to 'crates/rocie-client/src/models/user_stub.rs')
| -rw-r--r-- | crates/rocie-client/src/models/user_stub.rs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/crates/rocie-client/src/models/user_stub.rs b/crates/rocie-client/src/models/user_stub.rs new file mode 100644 index 0000000..8f620db --- /dev/null +++ b/crates/rocie-client/src/models/user_stub.rs @@ -0,0 +1,36 @@ +/* + * 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 UserStub { + /// An optional description of the new user. + #[serde(rename = "description", skip_serializing_if = "Option::is_none")] + pub description: Option<String>, + /// The name of the new user. + #[serde(rename = "name")] + pub name: String, + /// The password of the new user. + #[serde(rename = "password")] + pub password: String, +} + +impl UserStub { + pub fn new(name: String, password: String) -> UserStub { + UserStub { + description: None, + name, + password, + } + } +} + |
