We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like to generate some phone numbers and include both PhoneNumber() and CellNumber().
PhoneNumber()
CellNumber()
Is there a way to do that already?
To give an example of what I'm after:
Warning
This code does not work at the time of writing
#[derive(Debug, Dummy)] struct Foo { #[dummy(faker = "PhoneNumber(), CellNumber()")] phone_number: String, }
The text was updated successfully, but these errors were encountered:
added Either faker for String, https://github.com/cksac/fake-rs/blob/master/fake/examples/utils.rs
use fake::faker::phone_number::en::{CellNumber, PhoneNumber}; use fake::{utils::either, Dummy, Fake, Faker}; #[derive(Debug, Dummy)] struct Foo { #[dummy(faker = "either(PhoneNumber(), CellNumber())")] phone_number: String, }
Sorry, something went wrong.
Thanks @cksac
No branches or pull requests
I would like to generate some phone numbers and include both
PhoneNumber()
andCellNumber()
.Is there a way to do that already?
To give an example of what I'm after:
Warning
This code does not work at the time of writing
The text was updated successfully, but these errors were encountered: