fireblocks-sdk 2026.3.27

Rust implementation of the Fireblocks SDK
Documentation
// Fireblocks API
//
// 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)
//
// The version of the OpenAPI document: 1.8.0
// Contact: developers@fireblocks.com
// Generated by: https://openapi-generator.tech

use {
    crate::models,
    serde::{Deserialize, Serialize},
};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NetworkConnection {
    /// The network ID of the profile trying to create the connection.
    #[serde(rename = "localNetworkId")]
    pub local_network_id: String,
    /// The network ID the profile is attempting to connect to.
    #[serde(rename = "remoteNetworkId")]
    pub remote_network_id: String,
    #[serde(rename = "routingPolicy", skip_serializing_if = "Option::is_none")]
    pub routing_policy:
        Option<std::collections::HashMap<String, models::NetworkConnectionRoutingPolicyValue>>,
}

impl NetworkConnection {
    pub fn new(local_network_id: String, remote_network_id: String) -> NetworkConnection {
        NetworkConnection {
            local_network_id,
            remote_network_id,
            routing_policy: None,
        }
    }
}