Skip to main content

add_preference

Function add_preference 

Source
pub fn add_preference(
    conn: &Connection,
    text: &str,
    created_at: &str,
) -> Result<bool>
Expand description

Record a durable user preference. De-duplicated on text (a repeat is a no-op). Returns whether a new preference was stored.