wasmer_registry/graphql/
queries.rs1use graphql_client::GraphQLQuery;
20
21#[derive(GraphQLQuery)]
22#[graphql(
23 schema_path = "graphql/schema.graphql",
24 query_path = "graphql/queries/get_package_version.graphql",
25 response_derives = "Debug"
26)]
27pub(crate) struct GetPackageVersionQuery;
28
29#[derive(GraphQLQuery)]
30#[graphql(
31 schema_path = "graphql/schema.graphql",
32 query_path = "graphql/queries/get_package_by_command.graphql",
33 response_derives = "Debug"
34)]
35pub(crate) struct GetPackageByCommandQuery;
36
37#[derive(GraphQLQuery)]
38#[graphql(
39 schema_path = "graphql/schema.graphql",
40 query_path = "graphql/queries/test_if_registry_present.graphql",
41 response_derives = "Debug"
42)]
43pub(crate) struct TestIfRegistryPresent;
44
45#[derive(GraphQLQuery)]
46#[graphql(
47 schema_path = "graphql/schema.graphql",
48 query_path = "graphql/queries/get_bindings.graphql",
49 response_derives = "Debug,Clone,PartialEq,Eq"
50)]
51pub(crate) struct GetBindingsQuery;
52
53#[derive(GraphQLQuery)]
54#[graphql(
55 schema_path = "graphql/schema.graphql",
56 query_path = "graphql/queries/get_signed_url.graphql",
57 response_derives = "Debug, Clone"
58)]
59pub(crate) struct GetSignedUrl;
60
61#[derive(GraphQLQuery)]
62#[graphql(
63 schema_path = "graphql/schema.graphql",
64 query_path = "graphql/queries/get_interface_version.graphql",
65 response_derives = "Debug"
66)]
67pub(crate) struct GetInterfaceVersionQuery;
68
69#[derive(GraphQLQuery)]
70#[graphql(
71 schema_path = "graphql/schema.graphql",
72 query_path = "graphql/queries/whoami.graphql",
73 response_derives = "Debug"
74)]
75pub struct WhoAmIQuery;