pub enum ParseVenueTemplateError {
Show 14 variants
Address {
field: String,
value: String,
},
BlankLabel,
SameMint,
AccountCount {
count: usize,
},
Data(DecodeError),
AmountOffset {
offset: u32,
len: usize,
},
NoUserSlot,
NoTokenAccountSlot,
SlotOutOfRange {
role: &'static str,
slot: u8,
},
DuplicateRoleSlot {
slot: u8,
},
UserNotSigner {
slot: u8,
},
TokenAccountReadOnly {
slot: u8,
},
DerivedSeeds,
NoDerivedSlot,
}Expand description
Why a supplied template could not be used.
Variants§
Address
A field holds a string that is not a base58 address.
BlankLabel
label is empty or only whitespace.
SameMint
inputMint equals outputMint.
AccountCount
The per-instruction runtime ceiling; an empty list names no slot to rewrite.
Data(DecodeError)
instruction.data is not valid base64.
AmountOffset
The AMOUNT_WIDTH-byte amount at amountOffset runs past the end of the data.
NoUserSlot
taker.user is empty.
NoTokenAccountSlot
taker.inputTokenAccount or taker.outputTokenAccount is empty.
SlotOutOfRange
A slot index is not below the number of instruction accounts.
Fields
DuplicateRoleSlot
Two roles, or two entries of one role, name the same slot.
UserNotSigner
A user slot’s account is not a signer.
TokenAccountReadOnly
A token-account slot’s account is not writable.
DerivedSeeds
A derived account has no seeds, too many seeds, or a seed that is too long.
NoDerivedSlot
A derived account’s slots is empty.
Trait Implementations§
Source§impl Debug for ParseVenueTemplateError
impl Debug for ParseVenueTemplateError
Source§impl Display for ParseVenueTemplateError
impl Display for ParseVenueTemplateError
impl Eq for ParseVenueTemplateError
Source§impl Error for ParseVenueTemplateError
impl Error for ParseVenueTemplateError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()