pub enum AbiDecoded {
Field(Fr),
Boolean(bool),
Integer(i128),
Array(Vec<AbiDecoded>),
String(String),
Struct(BTreeMap<String, AbiDecoded>),
Tuple(Vec<AbiDecoded>),
Address(AztecAddress),
None,
}Expand description
A decoded ABI value, produced by decode_from_abi.
Variants§
Field(Fr)
A field element.
Boolean(bool)
A boolean value.
Integer(i128)
An integer (signed or unsigned, stored as i128).
Array(Vec<AbiDecoded>)
A fixed-length array of decoded values.
String(String)
A decoded string.
Struct(BTreeMap<String, AbiDecoded>)
A struct with named fields.
Tuple(Vec<AbiDecoded>)
A tuple of decoded values.
Address(AztecAddress)
An AztecAddress (special-cased from struct decoding).
None
None / absent (decoded from Option with _is_some == false).
Trait Implementations§
Source§impl Clone for AbiDecoded
impl Clone for AbiDecoded
Source§fn clone(&self) -> AbiDecoded
fn clone(&self) -> AbiDecoded
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AbiDecoded
impl Debug for AbiDecoded
Source§impl PartialEq for AbiDecoded
impl PartialEq for AbiDecoded
impl StructuralPartialEq for AbiDecoded
Auto Trait Implementations§
impl Freeze for AbiDecoded
impl RefUnwindSafe for AbiDecoded
impl Send for AbiDecoded
impl Sync for AbiDecoded
impl Unpin for AbiDecoded
impl UnsafeUnpin for AbiDecoded
impl UnwindSafe for AbiDecoded
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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