-
-
Save Endermanbugzjfc/b8f4ab28e33e214507d8caf79b9f815e to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn mock<T: Into<String>, I: IntoIterator<Item = T>>(_: I) {} | |
struct Merchant<'a> { | |
name: &'a str, | |
billing_portal: &'a str, | |
billing_period: &'a str, | |
stripe_id: Option<&'a str>, | |
} | |
fn merchant() -> Merchant { unimplemented!(); } | |
fn run() { | |
let merch = merchant(); | |
mock(&[&merch.name, &merch.billing_portal, &merch.billing_period, &merch.stripe_id]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#playground.rs