bitwarden 2.0.0

Bitwarden Secrets Manager SDK
Documentation
//! Errors that can occur when using this SDK

use std::{borrow::Cow, fmt::Debug};

use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
    #[error("Internal error: {0}")]
    Internal(Cow<'static, str>),
}

// Ensure that the error messages implement Send and Sync
#[cfg(test)]
const _: () = {
    const fn assert_send_sync<T: Send + Sync>() {}
    assert_send_sync::<Error>();
};

pub type Result<T, E = Error> = std::result::Result<T, E>;