pub enum Zip321Error {
InvalidBase64(DecodeError),
MemoBytesError(Error),
TooManyPayments(usize),
DuplicateParameter(Param, usize),
TransparentMemo(usize),
RecipientMissing(usize),
ParseError(String),
}
Expand description
Errors that may be produced in decoding of payment requests.
Variants§
InvalidBase64(DecodeError)
A memo field in the ZIP 321 URI was not properly base-64 encoded
MemoBytesError(Error)
A memo value exceeded 512 bytes in length or could not be interpreted as a UTF-8 string when using a valid UTF-8 lead byte.
TooManyPayments(usize)
The ZIP 321 request included more payments than can be created within a single Zcash transaction. The wrapped value is the number of payments in the request.
DuplicateParameter(Param, usize)
Parsing encountered a duplicate ZIP 321 URI parameter for the returned payment index.
TransparentMemo(usize)
The payment at the wrapped index attempted to include a memo when sending to a transparent recipient address, which is not supported by the protocol.
RecipientMissing(usize)
The payment at the wrapped index did not include a recipient address.
ParseError(String)
The ZIP 321 URI was malformed and failed to parse.
Trait Implementations§
Source§impl Clone for Zip321Error
impl Clone for Zip321Error
Source§fn clone(&self) -> Zip321Error
fn clone(&self) -> Zip321Error
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Zip321Error
impl Debug for Zip321Error
Source§impl Display for Zip321Error
impl Display for Zip321Error
Source§impl Error for Zip321Error
impl Error for Zip321Error
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
Source§impl<E: Display> From<ConversionError<E>> for Zip321Error
impl<E: Display> From<ConversionError<E>> for Zip321Error
Source§impl PartialEq for Zip321Error
impl PartialEq for Zip321Error
impl Eq for Zip321Error
impl StructuralPartialEq for Zip321Error
Auto Trait Implementations§
impl Freeze for Zip321Error
impl RefUnwindSafe for Zip321Error
impl Send for Zip321Error
impl Sync for Zip321Error
impl Unpin for Zip321Error
impl UnwindSafe for Zip321Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more