gestalt-sdk 0.0.1-alpha.19

Rust SDK scaffolding and generated protocol bindings for Gestalt executable providers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by sdkgen. DO NOT EDIT.

//! Generated wire conversions for secrets.proto.

use crate::generated::v1;
use crate::secrets::{GetSecretRequest, GetSecretResponse};

/// Converts a native `GetSecretRequest` to its wire message.
pub(crate) fn to_wire_get_secret_request(value: GetSecretRequest) -> v1::GetSecretRequest {
    v1::GetSecretRequest { name: value.name }
}

/// Converts a wire `GetSecretResponse` to its native message.
pub(crate) fn from_wire_get_secret_response(value: v1::GetSecretResponse) -> GetSecretResponse {
    GetSecretResponse { value: value.value }
}