Skip to main content

add

Function add 

Source
pub fn add(
    profiles: &mut Vec<BrowserProfile>,
    name: &str,
    color: Option<&str>,
    now_ms: i64,
) -> Result<BrowserProfile, String>
Expand description

A new profile added to profiles: a fresh id, a checked name, and the given colour or the next one from the palette.