fn main() {
pub mod example {
use ::edgedb_codegen::exports as e;
#[cfg(feature = "query")]
pub async fn query(
client: &e::edgedb_tokio::Client,
) -> core::result::Result<Vec<Output>, e::edgedb_errors::Error> {
client.query(QUERY, &()).await
}
#[cfg(feature = "query")]
pub async fn transaction(
conn: &mut e::edgedb_tokio::Transaction,
) -> core::result::Result<Vec<Output>, e::edgedb_errors::Error> {
conn.query(QUERY, &()).await
}
pub type Input = ();
#[derive(Clone, Debug)]
#[cfg_attr(feature = "query", derive(e::edgedb_derive::Queryable))]
#[cfg_attr(
feature = "serde",
derive(e::serde::Serialize, e::serde::Deserialize)
)]
pub struct OutputWalletsSet {
pub name: Option<String>,
pub pubkey: String,
pub created_at: e::chrono::DateTime<e::chrono::Utc>,
pub id: e::uuid::Uuid,
pub updated_at: e::chrono::DateTime<e::chrono::Utc>,
pub primary: bool,
pub description: Option<String>,
}
#[derive(Clone, Debug)]
#[cfg_attr(feature = "query", derive(e::edgedb_derive::Queryable))]
#[cfg_attr(
feature = "serde",
derive(e::serde::Serialize, e::serde::Deserialize)
)]
pub struct Output {
pub slug: String,
pub id: e::uuid::Uuid,
pub created_at: e::chrono::DateTime<e::chrono::Utc>,
pub updated_at: e::chrono::DateTime<e::chrono::Utc>,
pub description: Option<String>,
pub name: String,
pub wallets: Vec<OutputWalletsSet>,
}
pub const QUERY: &str = "select Team {**}";
}
}