pub enum ArgumentValue {
Address([u8; 20]),
Uint(Vec<u8>),
Int(Vec<u8>),
Bool(bool),
Bytes(Vec<u8>),
FixedBytes(Vec<u8>),
String(String),
Array(Vec<ArgumentValue>),
Tuple(Vec<(Option<String>, ArgumentValue)>),
}Expand description
Decoded argument values.
Variants§
Address([u8; 20])
Uint(Vec<u8>)
Int(Vec<u8>)
Bool(bool)
Bytes(Vec<u8>)
FixedBytes(Vec<u8>)
String(String)
Array(Vec<ArgumentValue>)
Tuple(Vec<(Option<String>, ArgumentValue)>)
Implementations§
Source§impl ArgumentValue
impl ArgumentValue
Sourcepub fn to_json_value(&self) -> Value
pub fn to_json_value(&self) -> Value
Convert to a serde_json::Value for visibility rule evaluation.
Sourcepub fn as_uint_bytes(&self) -> Option<[u8; 32]>
pub fn as_uint_bytes(&self) -> Option<[u8; 32]>
Get the raw uint256 bytes, zero-extended to 32 bytes.
Trait Implementations§
Source§impl Clone for ArgumentValue
impl Clone for ArgumentValue
Source§fn clone(&self) -> ArgumentValue
fn clone(&self) -> ArgumentValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ArgumentValue
impl RefUnwindSafe for ArgumentValue
impl Send for ArgumentValue
impl Sync for ArgumentValue
impl Unpin for ArgumentValue
impl UnsafeUnpin for ArgumentValue
impl UnwindSafe for ArgumentValue
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