mirror of
https://github.com/tig-foundation/tig-monorepo.git
synced 2026-02-21 10:27:49 +08:00
Add ChallengeType to get-challenges.
This commit is contained in:
parent
578903f147
commit
9e550d11b6
@ -1045,6 +1045,9 @@ components:
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
type:
|
||||
type: string
|
||||
enum: [cpu, gpu]
|
||||
ChallengeId:
|
||||
type: string
|
||||
pattern: ^c[0-9]{3}$
|
||||
@ -1210,6 +1213,9 @@ components:
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: string
|
||||
cpu_arch:
|
||||
type: string
|
||||
enum: [amd64, arm64]
|
||||
Player:
|
||||
type: object
|
||||
properties:
|
||||
|
||||
@ -309,9 +309,16 @@ serializable_struct_with_getters! {
|
||||
}
|
||||
|
||||
// Challenge child structs
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Serialize, Deserialize, Hash)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub enum ChallengeType {
|
||||
CPU,
|
||||
GPU,
|
||||
}
|
||||
serializable_struct_with_getters! {
|
||||
ChallengeDetails {
|
||||
name: String,
|
||||
r#type: ChallengeType,
|
||||
}
|
||||
}
|
||||
serializable_struct_with_getters! {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user