arche 4.2.0

An opinionated backend foundation for Axum applications, providing batteries-included integrations for cloud services, databases, authentication, middleware, and logging.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::error::AppError;
use crate::gcp::client::GcpClient;
use crate::gcp::token::ServiceAccountKey;

const SCOPE: &str = "https://www.googleapis.com/auth/spreadsheets";

pub async fn client(
    key: Option<ServiceAccountKey>,
    path: Option<String>,
) -> Result<GcpClient, AppError> {
    GcpClient::new(key, path, [SCOPE]).await
}