18 lines
318 B
Crystal
18 lines
318 B
Crystal
|
|
||
|
class Config
|
||
|
include YAML::Serializable
|
||
|
|
||
|
class Authentication
|
||
|
include YAML::Serializable
|
||
|
|
||
|
@[YAML::Field(key: "username")]
|
||
|
property username : String
|
||
|
|
||
|
@[YAML::Field(key: "password")]
|
||
|
property password : String
|
||
|
end
|
||
|
|
||
|
@[YAML::Field(key: "authentication")]
|
||
|
property auth : Authentication
|
||
|
end
|