Why Nostr? What is Njump?
2023-12-29 15:10:01
in reply to

janis on Nostr: Not yew and wasm, but lots of Rust. Typically you deserialize directly into your ...

Not yew and wasm, but lots of Rust. Typically you deserialize directly into your type, and then maybe have an additional validation method on it if the shape is not enough.

In practice it’s not really that bad when it comes to types. You can set Serde to ignore unknown fields to deal with APIs that throw the jungle together with the monkey and the banana. But yes, if something that you need out of the API can be NULL, that should be an Option on Rust side.

But that’s a win. Right? Right? 😂😅
Author Public Key
npub1mfmpks2n5xzymsp665zlczx3yh2tkp2d0n62flsxmc7lw7j9lkzsxv27pu