bitwarden_sm/projects/
get.rsuse bitwarden_core::{client::Client, Error};
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use uuid::Uuid;
use super::ProjectResponse;
#[derive(Serialize, Deserialize, Debug, JsonSchema)]
#[serde(rename_all = "camelCase", deny_unknown_fields)]
pub struct ProjectGetRequest {
pub id: Uuid,
}
pub(crate) async fn get_project(
client: &Client,
input: &ProjectGetRequest,
) -> Result<ProjectResponse, Error> {
let config = client.internal.get_api_configurations().await;
let res = bitwarden_api_api::apis::projects_api::projects_id_get(&config.api, input.id).await?;
let enc = client.internal.get_encryption_settings()?;
ProjectResponse::process_response(res, &enc)
}