Skip to main content

sendfun_sdk/nexus/generated/
shared.rs

1#![allow(
2	clippy::all,
3	clippy::pedantic,
4	clippy::nursery,
5	clippy::expect_used,
6	clippy::unwrap_used,
7	clippy::indexing_slicing,
8	clippy::allow_attributes,
9	clippy::allow_attributes_without_reason,
10	clippy::mem_forget,
11	unfulfilled_lint_expectations,
12	unexpected_cfgs,
13	unused_imports
14)]
15
16//! This code was AUTOGENERATED using the codama library.
17//! Please DO NOT EDIT THIS FILE, instead use visitors
18//! to add features, then rerun codama to update it.
19//!
20//! <https://github.com/codama-idl/codama>
21//!
22
23#[cfg(feature = "fetch")]
24#[derive(Debug, Clone)]
25pub struct DecodedAccount<T> {
26	pub address: solana_address::Address,
27	pub account: solana_account::Account,
28	pub data: T,
29}
30
31#[cfg(feature = "fetch")]
32#[derive(Debug, Clone)]
33pub enum MaybeAccount<T> {
34	Exists(DecodedAccount<T>),
35	NotFound(solana_address::Address),
36}