mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			456 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			456 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| pub struct Demo {
 | |
|     pub x: i32,
 | |
|     pub y: i32,
 | |
| }
 | |
| 
 | |
| // @set x = "$.index[*][?(@.name=='x')].id"
 | |
| // @set y = "$.index[*][?(@.name=='y')].id"
 | |
| // @is "$.index[*][?(@.name=='Demo')].inner.struct.kind.plain.fields[0]" $x
 | |
| // @is "$.index[*][?(@.name=='Demo')].inner.struct.kind.plain.fields[1]" $y
 | |
| // @count "$.index[*][?(@.name=='Demo')].inner.struct.kind.plain.fields[*]" 2
 | |
| // @is "$.index[*][?(@.name=='Demo')].inner.struct.kind.plain.fields_stripped" false
 | 
