Closed Skydive closed 1 year ago
Hi, we have an issue with name clashing which is detailed in this issue: https://github.com/arlyon/async-stripe/issues/154 due to the way rust handles aliasing. I am planning on a breaking change soon to resolve this by renaming types with clashing names, but have no timeline just yet
You should be able to just import the appropriate variant from the generated module directly.
- use stripe::SubscriptionPaymentBehavior;
+ use stripe::generated::billing::subscription::SubscriptionPaymentBehavior;
I am going to close this with the expectation that it is a duplicate of the above issue. If that is not the case, please leave a comment :)
Describe the bug
I'm getting a nasty compiler error while compiling. I'm trying to set the
payment_behaviour
field of a new subscription as documented in the stripe guide.I can also see in the automatically generated API documentation, there is something wrong in the
CreateSubscription
struct. I cannot access theSubscriptionPaymentBehaviour
struct from it. Perhaps this is related to the problem I have.To Reproduce
Fetch latest version of async-stripe from github. Attempt to set the
payment_behaviour
field of aCreateSubscription
struct.Expected behavior
Expecting normal compilation
Code snippets
Cargo.toml
OS
Linux 6.0.2
Rust version
rustc 1.65.0 (897e37553 2022-11-02)
Library version
async-stripe (latest, branch master & 0.15.0)
API version
2022-11-15
Additional context
No response