| Crates.io | irox-safe-windows |
| lib.rs | irox-safe-windows |
| version | 0.1.4 |
| created_at | 2023-12-23 14:09:54.576243+00 |
| updated_at | 2025-03-01 16:21:32.476028+00 |
| description | Wrappers around the windows native unsafe functions to make them ergonomic |
| homepage | https://github.com/spmadden/irox-unsafe |
| repository | https://github.com/spmadden/irox-unsafe |
| max_upload_size | |
| id | 1079138 |
| size | 103,431 |
Wrappers around the windows native unsafe functions to make them ergonomic
use irox_safe_windows::credentials::{Credentials, PromptOptions, prompt};
use irox_safe_windows::error::Error;
pub fn main() -> Result<(), Error> {
let options = PromptOptions::new()
.with_title("Little Title Text!")
.with_subtitle("Big Title Text!");
let creds : Credentials = prompt(&options)?;
let username : &String = &creds.username;
let password : &String = &creds.password;
let user_requested_save : &bool = &creds.save_requested;
Ok(())
}
