Crates.io | pubkey |
lib.rs | pubkey |
version | 0.1.1 |
source | src |
created_at | 2022-02-05 02:08:24.053448 |
updated_at | 2022-03-22 19:43:20.160107 |
description | Serde Solana Pubkey serializer/deserializer. |
homepage | https://clb.exchange |
repository | https://github.com/CLBExchange/certified-token-liist |
max_upload_size | |
id | 527220 |
size | 3,410 |
Serde Solana Pubkey serializer/deserializer.
Add pubkey
to your Cargo.toml
.
use solana_program::pubkey::Pubkey;
#[derive(serde::Serialize, serde::Deserialize)]
pub struct MyStruct {
/// Token pubkey.
#[serde(with = "pubkey")]
pub address: Pubkey,
}
The pubkey
crate is licensed under the Apache 2.0 License.
License: Apache-2.0