DrChat / wsdl-rs

Idiomatic WSDL wrapper for Rust
https://crates.io/crates/wsdl
4 stars 1 forks source link

Add multi-return function variants for outputs and faults on operations #4

Open OvermindDL1 opened 2 months ago

OvermindDL1 commented 2 months ago

Should fix #3, although I'm unsure if the old output/fault should return a new error variant instead of panicing on multiple results (definitely shouldn't just hide the rest for sure though).

OvermindDL1 commented 2 months ago

This is built on PR #2 for note, but can be cherry picked out if that PR is unsatisfactory for some reason.

OvermindDL1 commented 2 months ago

Made outputs not public since it isn't allowed in the spec anyway, only faults are, thinking output should still use it though as it allows for convenient assertion or only one matching entry, inputs should probably have the same check.

Also fixed WsMessage::parts because it was missing lifetimes on its return type so it was defaulting to the &self lifetime, which was overly constraining, which it should have been bound on 'a, 'input like everything else.