File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
azure_devops_rust_api/src/build Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
- Change ` ServiceEndpoint ` field to be optional:
11
11
- ` description `
12
+ - Change ` AgentPoolQueue ` field to be optional:
13
+ - ` pool `
12
14
13
15
## [ 0.30.0]
14
16
Original file line number Diff line number Diff line change @@ -16,18 +16,19 @@ pub struct AgentPoolQueue {
16
16
#[ doc = "The name of the queue." ]
17
17
pub name : String ,
18
18
#[ doc = "Represents a reference to an agent pool." ]
19
- pub pool : TaskAgentPoolReference ,
19
+ #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
20
+ pub pool : Option < TaskAgentPoolReference > ,
20
21
#[ doc = "The full http link to the resource." ]
21
22
#[ serde( default , skip_serializing_if = "Option::is_none" ) ]
22
23
pub url : Option < String > ,
23
24
}
24
25
impl AgentPoolQueue {
25
- pub fn new ( id : i32 , name : String , pool : TaskAgentPoolReference ) -> Self {
26
+ pub fn new ( id : i32 , name : String ) -> Self {
26
27
Self {
27
28
links : None ,
28
29
id,
29
30
name,
30
- pool,
31
+ pool : None ,
31
32
url : None ,
32
33
}
33
34
}
Original file line number Diff line number Diff line change @@ -1313,9 +1313,9 @@ impl Patcher {
1313
1313
// Excluded
1314
1314
// _links
1315
1315
// url
1316
+ // pool"
1316
1317
r#"[
1317
1318
"id",
1318
- "pool",
1319
1319
"name"
1320
1320
]"# ,
1321
1321
) ,
You can’t perform that action at this time.
0 commit comments