File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
+ - Change ` ServiceEndpoint ` field to be optional:
11
+ - ` description `
12
+
10
13
## [ 0.30.0]
11
14
12
15
### Changes
Original file line number Diff line number Diff line change @@ -32,8 +32,10 @@ async fn main() -> Result<()> {
32
32
// Display the returned service endpoints
33
33
for endpoint in service_endpoints. iter ( ) {
34
34
println ! (
35
- "{:38} {:40} {}" ,
36
- endpoint. id, endpoint. name, endpoint. description
35
+ "{:38} {:40} {:?}" ,
36
+ endpoint. id,
37
+ endpoint. name,
38
+ endpoint. description. as_deref( ) . unwrap_or( "" )
37
39
) ;
38
40
}
39
41
Original file line number Diff line number Diff line change @@ -1312,7 +1312,8 @@ pub struct ServiceEndpoint {
1312
1312
pub created_by : IdentityRef ,
1313
1313
pub data : serde_json:: Value ,
1314
1314
#[ doc = "Gets or sets the description of endpoint." ]
1315
- pub description : String ,
1315
+ #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
1316
+ pub description : Option < String > ,
1316
1317
#[ doc = "This is a deprecated field." ]
1317
1318
#[ serde(
1318
1319
rename = "groupScopeId" ,
@@ -1364,7 +1365,6 @@ impl ServiceEndpoint {
1364
1365
authorization : EndpointAuthorization ,
1365
1366
created_by : IdentityRef ,
1366
1367
data : serde_json:: Value ,
1367
- description : String ,
1368
1368
id : String ,
1369
1369
is_ready : bool ,
1370
1370
is_shared : bool ,
@@ -1378,7 +1378,7 @@ impl ServiceEndpoint {
1378
1378
authorization,
1379
1379
created_by,
1380
1380
data,
1381
- description,
1381
+ description : None ,
1382
1382
group_scope_id : None ,
1383
1383
id,
1384
1384
is_ready,
Original file line number Diff line number Diff line change @@ -1042,11 +1042,11 @@ impl Patcher {
1042
1042
// Excluded
1043
1043
// administratorsGroup
1044
1044
// operationStatus
1045
+ // description
1045
1046
r#"[
1046
1047
"authorization",
1047
1048
"createdBy",
1048
1049
"data",
1049
- "description",
1050
1050
"id",
1051
1051
"isReady",
1052
1052
"isShared",
You can’t perform that action at this time.
0 commit comments