Module prelude

Module prelude 

Source
Expand description

Import common types for writing commands.

Re-exports§

pub use crate::CmdInputDescription;
pub use crate::CmdInputDescription as Input;
pub use crate::CmdOutputDescription;
pub use crate::CmdOutputDescription as Output;
pub use crate::FlowId;
pub use crate::Name;
pub use crate::ValueSet;
pub use crate::ValueType;
pub use crate::command::CommandDescription;
pub use crate::command::CommandError;
pub use crate::command::CommandTrait;
pub use crate::command::InstructionInfo;
pub use crate::command::builder::BuildResult;
pub use crate::command::builder::BuilderCache;
pub use crate::command::builder::BuilderError;
pub use crate::command::builder::CmdBuilder;
pub use crate::config::client::NodeData;
pub use crate::config::node::Permissions;
pub use crate::context::CommandContext;
pub use crate::solana::Instructions;
pub use value;

Structs§

AsDecimal
AsKeypair
AsPubkey
AsSignature
Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
Decimal
Decimal represents a 128 bit representation of a fixed-precision decimal number. The finite set of values of type Decimal are of the form m / 10e, where m is an integer such that -296 < m < 296, and e is an integer between 0 and 28 inclusive.
Keypair
A vanilla Ed25519 key pair
Pubkey
The address of a Solana account.
Signature

Enums§

Either
Combines two different futures, streams, or sinks having the same associated types into a single type.
JsonValue
Represents any valid JSON value.
Value
Value represents all values that nodes can use as input and output.

Traits§

Deserialize
A data structure that can be deserialized from any data format supported by Serde.
Serialize
A data structure that can be serialized into any data format supported by Serde.

Attribute Macros§

async_trait
serde_as
Convenience macro to use the serde_as system.

Derive Macros§

Deserialize
Serialize
ThisError