gestalt/public/generated/app.rs
1// Code generated by sdkgen. DO NOT EDIT.
2
3//! Generated native types and clients for app.proto.
4
5/// AppInvokeGraphQLRequest invokes the raw GraphQL surface on another plugin
6/// through Gestalt.
7///
8/// Native message type for `gestalt.provider.v1.AppInvokeGraphQLRequest`.
9#[derive(Clone, Debug, Default, PartialEq, serde::Serialize, serde::Deserialize)]
10#[serde(rename_all = "camelCase")]
11pub struct AppInvokeGraphQLRequest {
12 /// The `app` field.
13 pub app: String,
14 /// The `document` field.
15 pub document: String,
16 /// The `variables` field; None when unset.
17 pub variables: Option<serde_json::Map<String, serde_json::Value>>,
18 /// The `connection` field.
19 pub connection: String,
20 /// The `instance` field.
21 pub instance: String,
22 /// The `idempotency_key` field.
23 pub idempotency_key: String,
24 /// headers overrides outbound static headers declared by the target provider.
25 ///
26 /// The `headers` field.
27 pub headers: std::collections::BTreeMap<String, String>,
28}
29
30/// AppInvokeRequest invokes a declared operation on another app through Gestalt.
31///
32/// Native message type for `gestalt.provider.v1.AppInvokeRequest`.
33#[derive(Clone, Debug, Default, PartialEq, serde::Serialize, serde::Deserialize)]
34#[serde(rename_all = "camelCase")]
35pub struct AppInvokeRequest {
36 /// The `app` field.
37 pub app: String,
38 /// The `operation` field.
39 pub operation: String,
40 /// The `params` field; None when unset.
41 pub params: Option<serde_json::Map<String, serde_json::Value>>,
42 /// The `connection` field.
43 pub connection: String,
44 /// The `instance` field.
45 pub instance: String,
46 /// The `idempotency_key` field.
47 pub idempotency_key: String,
48 /// The `credential_mode` field.
49 pub credential_mode: String,
50 /// headers overrides outbound static headers declared by the target provider.
51 ///
52 /// The `headers` field.
53 pub headers: std::collections::BTreeMap<String, String>,
54}