fireblocks_sdk/models/base_provider.rs
1// Fireblocks API
2//
3// Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
4//
5// The version of the OpenAPI document: 1.8.0
6// Contact: developers@fireblocks.com
7// Generated by: https://openapi-generator.tech
8
9use {
10 crate::models,
11 serde::{Deserialize, Serialize},
12};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct BaseProvider {
16 /// Unique identifier for the provider
17 #[serde(rename = "id")]
18 pub id: String,
19 /// Display name of the provider
20 #[serde(rename = "name")]
21 pub name: String,
22 /// URL to the logo image of the provider
23 #[serde(rename = "logo", skip_serializing_if = "Option::is_none")]
24 pub logo: Option<String>,
25 /// Indicates whether the provider access model is through accounts or
26 /// directly
27 #[serde(rename = "accountBased")]
28 pub account_based: bool,
29}
30
31impl BaseProvider {
32 pub fn new(id: String, name: String, account_based: bool) -> BaseProvider {
33 BaseProvider {
34 id,
35 name,
36 logo: None,
37 account_based,
38 }
39 }
40}