Skip to content

Commit 92634c6

Browse files
authored
feat: add default for QueryTaskResponse (#60)
1 parent c28acd0 commit 92634c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/prover/proving_service.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ pub struct ProveRequest {
2727
pub input: String,
2828
}
2929

30+
#[derive(Default)]
3031
pub struct ProveResponse {
3132
pub task_id: String,
3233
pub circuit_type: CircuitType,
@@ -47,6 +48,7 @@ pub struct QueryTaskRequest {
4748
pub task_id: String,
4849
}
4950

51+
#[derive(Default)]
5052
pub struct QueryTaskResponse {
5153
pub task_id: String,
5254
pub circuit_type: CircuitType,
@@ -63,8 +65,9 @@ pub struct QueryTaskResponse {
6365
pub error: Option<String>,
6466
}
6567

66-
#[derive(Debug, PartialEq)]
68+
#[derive(Debug, PartialEq, Default)]
6769
pub enum TaskStatus {
70+
#[default]
6871
Queued,
6972
Proving,
7073
Success,

0 commit comments

Comments
 (0)