Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@MrRobb
Copy link

@MrRobb MrRobb commented Oct 4, 2019

Feature: Add Image faker (it's not https://www.lorempixel.com but related to #25).

@cksac
Copy link
Owner

cksac commented Oct 5, 2019

Thanks for the PR. As #25 's discussion, we would like to use the image provider as namespace and I am not sure is it necessary to have locale for image faker. I would suggest use something like

pub enum Picsum {
    Default,
    WithSize(u16, u16),
}

or

pub struct Picsum {
   height: u16,
   width: u16,
   blur: u8,
   is_grayscale: bool,
}

then implement Dummy<Picsum> for String without locale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants