#[repr(i32)]pub enum TraceDataType {
Int64 = 1,
Uint64 = 2,
Xfloat = 3,
Account = 4,
Amount = 5,
AsHex = 6,
AsText = 7,
}Expand description
How the host should read the data buffer. Mirrors xrpld’s TraceDataType; the discriminants
are wire values, numbered from 1 so a zeroed data_type hits the host’s invalid branch.
Variants§
Int64 = 1
8 little-endian bytes, printed as a signed decimal.
Uint64 = 2
8 little-endian bytes, printed as an unsigned decimal.
Xfloat = 3
8 bytes holding an opaque float.
Account = 4
A 20-byte account ID, printed as base58.
Amount = 5
A serialized STAmount.
AsHex = 6
Raw bytes, hex-encoded by the host.
AsText = 7
Bytes printed verbatim as text.
Trait Implementations§
Source§impl Clone for TraceDataType
impl Clone for TraceDataType
Source§fn clone(&self) -> TraceDataType
fn clone(&self) -> TraceDataType
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 moreimpl Copy for TraceDataType
Auto Trait Implementations§
impl Freeze for TraceDataType
impl RefUnwindSafe for TraceDataType
impl Send for TraceDataType
impl Sync for TraceDataType
impl Unpin for TraceDataType
impl UnsafeUnpin for TraceDataType
impl UnwindSafe for TraceDataType
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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