()
| 149 | |
| 150 | #[test] |
| 151 | fn update_team_request_partial() { |
| 152 | let body = UpdateTeamRequest { |
| 153 | name: Some("New Name"), |
| 154 | description: None, |
| 155 | visibility: None, |
| 156 | }; |
| 157 | let json = serde_json::to_value(&body).unwrap(); |
| 158 | assert_eq!(json["name"], "New Name"); |
| 159 | assert!(json.get("description").is_none()); |
| 160 | assert!(json.get("visibility").is_none()); |
| 161 | } |
| 162 | |
| 163 | #[test] |
| 164 | fn update_team_request_all_fields() { |