gestalt-sdk 0.0.1-alpha.26

Rust SDK scaffolding and generated protocol bindings for Gestalt executable providers
Documentation
// Code generated by sdkgen. DO NOT EDIT.

//! Generated native types and clients for app.proto.

/// AppInvokeGraphQLRequest invokes the raw GraphQL surface on another plugin
/// through Gestalt.
///
/// Native message type for `gestalt.provider.v1.AppInvokeGraphQLRequest`.
#[derive(Clone, Debug, Default, PartialEq, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AppInvokeGraphQLRequest {
    /// The `app` field.
    pub app: String,
    /// The `document` field.
    pub document: String,
    /// The `variables` field; None when unset.
    pub variables: Option<serde_json::Map<String, serde_json::Value>>,
    /// The `connection` field.
    pub connection: String,
    /// The `instance` field.
    pub instance: String,
    /// The `idempotency_key` field.
    pub idempotency_key: String,
    /// headers overrides outbound static headers declared by the target provider.
    ///
    /// The `headers` field.
    pub headers: std::collections::BTreeMap<String, String>,
}

/// AppInvokeRequest invokes a declared operation on another app through Gestalt.
///
/// Native message type for `gestalt.provider.v1.AppInvokeRequest`.
#[derive(Clone, Debug, Default, PartialEq, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AppInvokeRequest {
    /// The `app` field.
    pub app: String,
    /// The `operation` field.
    pub operation: String,
    /// The `params` field; None when unset.
    pub params: Option<serde_json::Map<String, serde_json::Value>>,
    /// The `connection` field.
    pub connection: String,
    /// The `instance` field.
    pub instance: String,
    /// The `idempotency_key` field.
    pub idempotency_key: String,
    /// The `credential_mode` field.
    pub credential_mode: String,
    /// headers overrides outbound static headers declared by the target provider.
    ///
    /// The `headers` field.
    pub headers: std::collections::BTreeMap<String, String>,
}