cardano_sdk/cardano/with_network_id.rs
1// This Source Code Form is subject to the terms of the Mozilla Public
2// License, v. 2.0. If a copy of the MPL was not distributed with this
3// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5use crate::NetworkId;
6
7/// A type to allow bundling a network id with another. Useful to write trait instances that
8/// require a network id.
9#[derive(Debug)]
10pub struct WithNetworkId<'a, T> {
11 pub inner: &'a T,
12 pub network_id: NetworkId,
13}