Skip to main content

create

Function create 

Source
pub fn create(
    kind: Kind,
    account: &str,
    name: &str,
    color: Option<&str>,
    components: &[&str],
) -> Result<Collection, String>
Expand description

A new collection made here: its folder, its name and colour, and a state that asks the next sync to create it on the server (MKCALENDAR or an extended MKCOL). components says what a calendar holds (“VTODO” for a task list). Returns it; an id already taken gets a number.