mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
9 lines
360 B
V
9 lines
360 B
V
module main
|
|
|
|
struct AuthRequestDto {
|
|
// Adding a [required] attribute will make decoding fail, if that field is not present in the input.
|
|
// If a field is not [required], but is missing, it will be assumed to have its default value, like 0 for numbers, or '' for strings, and decoding will not fail.
|
|
username string [required]
|
|
password string [required]
|
|
}
|