Re-exports
pub use bs58;pub use crate::cache::Cache;pub use crate::cache::CacheItem;pub use crate::parse::path_to_string;pub use crate::setup::setup_client;pub use crate::setup::sugar_setup;pub use crate::constants::*;pub use crate::errors::*;
Modules
- An Anchor generated module, providing a set of structs mirroring the structs deriving
Accounts, where each field is aPubkey. This is useful for specifying accounts for a client. - An Anchor generated module containing the program’s set of instructions, where each method handler in the
#[program]mod is associated with a struct defining the input arguments to the method. These should be used directly, when one wants to serialize Anchor instruction data, for example, when speciying instructions on a client. - Instructions and constructors for the system program.
- Access to special accounts with dynamically-updated data.
Macros
- Construct an ad-hoc error from a string or existing non-
anyhowerror value. - Constructs an event at the debug level.
- Constructs an event at the error level.
- Constructs an event at the info level.
- Construct a
serde_json::Valuefrom a JSON literal. - Constructs an event at the warn level.
Structs
- Candy machine state and config data.
- Client defines the base configuration for building RPC clients to communicate with Anchor programs running on a Solana cluster. It’s primary use is to build a
Programclient via theprogrammethod. - An object providing access to an open file on the filesystem.
- A hash map implemented with quadratic probing and SIMD lookup.
- An asynchronous
Clientto make Requests with. - A hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.
- A vanilla Ed25519 key pair
- A slice of a path (akin to
str). - An owned, mutable path (akin to
String). - Program is the primary client handle to be used to build and send requests.
- The address of a Solana account.
- A Response to a submitted
Request. - An atomically-commited sequence of instructions.
Enums
- Represents any valid JSON value.
Traits
- A data structure that can be deserialized and stored into account storage, i.e. an
AccountInfo’s mutable data slice. - A data structure that can be deserialized from any data format supported by Serde.
- Parse a value from a string
- The
Signertrait declares operations that all digital signature providers must support. It is the primary interface by which signers are specified inTransactionsigning interfaces
Type Definitions
Result<T, Error>