dicebear 0.1.4

An unofficial dicebear wrapper for Rust
Documentation
#[derive(Default)]
pub struct DicebearBuilder {
    pub avatar_style: String,
    pub seed: Option<String>,
    pub size: String,
    pub flip: Option<bool>,
    pub options: Option<Vec<String>>,
}
impl DicebearBuilder {
    fn new(avatar_style:String) -> Self{
        Self {
            avatar_style, ..Default::default()
        }
    }
    fn add_size(mut self, value:String) -> Self {
        self.size = value;
        self
    }
    fn add_seed(mut self, value:Option<String>) -> Self {
        self.seed = value;
        self
    }
    fn add_flip(mut self, value:Option<bool>) -> Self {
        self.flip = value;
        self
    }
    fn add_options(mut self, value:Option<Vec<String>>) -> Self {
        self.options = value;
        self
    }
}