Allow missing approval-required
This commit is contained in:
		
							parent
							
								
									261e52e551
								
							
						
					
					
						commit
						e2feeecbb3
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -99,6 +99,10 @@ impl ActixJob for QueryInstance { | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | fn default_approval() -> bool { | ||||||
|  |     false | ||||||
|  | } | ||||||
|  | 
 | ||||||
| #[derive(serde::Deserialize)] | #[derive(serde::Deserialize)] | ||||||
| struct Instance { | struct Instance { | ||||||
|     title: String, |     title: String, | ||||||
|  | @ -106,6 +110,8 @@ struct Instance { | ||||||
|     description: String, |     description: String, | ||||||
|     version: String, |     version: String, | ||||||
|     registrations: bool, |     registrations: bool, | ||||||
|  | 
 | ||||||
|  |     #[serde(default = "default_approval")] | ||||||
|     approval_required: bool, |     approval_required: bool, | ||||||
| 
 | 
 | ||||||
|     #[serde(rename = "contact_account")] |     #[serde(rename = "contact_account")] | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue