13 lines
318 B
Rust
13 lines
318 B
Rust
|
|
use crate::scalar::Id;
|
||
|
|
use async_graphql::InputObject;
|
||
|
|
|
||
|
|
#[derive(InputObject)]
|
||
|
|
pub struct BenutzerCreateInput {
|
||
|
|
// #[graphql(validator(min_length = 6, max_length = 8))]
|
||
|
|
pub kennung: String,
|
||
|
|
pub vorname: String,
|
||
|
|
pub nachname: String,
|
||
|
|
pub rollen: Option<Vec<Id>>,
|
||
|
|
pub gruppen: Option<Vec<Id>>,
|
||
|
|
}
|