Skip to content

Commit 53179f2

Browse files
authored
add pub access modifier to publicly used struct fields (#263)
1 parent 18a9367 commit 53179f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/api.v

+3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
module api
22

33
pub struct ApiErrorResponse {
4+
pub:
45
success bool
56
message string
67
}
78

89
pub struct ApiResponse {
10+
pub:
911
success bool
1012
message string
1113
}
1214

1315
pub struct ApiSuccessResponse[T] {
16+
pub:
1417
success bool
1518
result T
1619
}

0 commit comments

Comments
 (0)