arclutevests 0.1.0

Retrieve secret data from a vault (Hashicorp) instance
Documentation
// Copyright (c) 2022 arclutevests developers
//
// Licensed under the Apache License, Version 2.0
// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT
// license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. All files in the project carrying such notice may not be copied,
// modified, or distributed except according to those terms.

//! approle models

use serde::Serialize;

#[derive(Clone, Debug, Serialize)]
pub(crate) struct AppRole {
    name: String,
}

impl AppRole {
    pub(crate) fn new<T>(name: T) -> Self
    where
        T: Into<String>,
    {
        Self { name: name.into() }
    }
}