get-cookie 0.2.0

Fetch a cookie from a local browser's cookie store
Documentation
use keyring;
use rusqlite;
use thiserror::Error;

#[derive(Error, Debug)]
pub enum GetCookieError {
    #[error("cannot find cookie database")]
    DatabaseNotFound,
    #[error(transparent)]
    SQLiteError {
        #[from]
        source: rusqlite::Error,
    },
    #[error(transparent)]
    KeyringError {
        #[from]
        source: keyring::Error,
    },
    #[error("invalid cookie format")]
    InvalidCookieFormat,
    #[error("cookie decryption error")]
    DecryptionError,
    #[error("cookie not found")]
    CookieNotFound,
}