How can I make a TextBox in the Druid library that hides the input text?

I've been writing in Rust for 3 days and I don't quite understand how to implement this. I couldn't find any information about it on the internet. I tried different ways, but nothing works. I'm already thinking of just replacing all the letters in the font with *, maybe that will help.

Can this be implemented more easily with the Druid library?

let textbox = TextBox::new()
        .with_font(FontDescriptor::new(FontFamily::MONOSPACE))
        .with_placeholder("Bot token")
        .fix_width(TEXT_BOX_WIDTH)
        .lens(BotToken::token);
1 Like