Registry / Library

library · v0.1.0
AllowFields
Find unrecognized fields after mapping schema keys to stable IDs.
Use AllowFields
use vendor::allowfields::allowfields;
Run the example
nest demo allowfields@0.1.0
blyxc native-run allowfields-demo/main.blyx
Example source and expected output
use vendor::allowfields::allowfields;
fn main() {
let present = [1, 3, 8];
let allowed = [1, 8];
let result = allowfields_extra(present, allowed);
if len(result) == 0 { println!("invalid"); return; }
let mut i = 0;
while i < len(result) {
println!(at(result, i));
i += 1;
}
}
Expected output
1
1
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.0 | Download ZIP | 889759d620 | 0f10a6efb4586df1d98620cf74797bbc53a2c481456f2b0d16616601f6cd7af5 |