pub struct DecodedField<'a> {
pub name: &'a str,
pub canonical_type: &'a str,
pub raw: &'a [u8],
pub offset: u16,
pub size: u16,
}Expand description
A decoded field value from account data.
Fields§
§name: &'a strField name.
canonical_type: &'a strCanonical type.
raw: &'a [u8]Raw bytes of this field.
offset: u16Offset in account data.
size: u16Size in bytes.
Implementations§
Source§impl<'a> DecodedField<'a>
impl<'a> DecodedField<'a>
Sourcepub fn format_value(&self, buf: &mut [u8]) -> usize
pub fn format_value(&self, buf: &mut [u8]) -> usize
Format the field value as a human-readable string.
Recognizes common Hopper wire types and formats them appropriately.
Auto Trait Implementations§
impl<'a> Freeze for DecodedField<'a>
impl<'a> RefUnwindSafe for DecodedField<'a>
impl<'a> Send for DecodedField<'a>
impl<'a> Sync for DecodedField<'a>
impl<'a> Unpin for DecodedField<'a>
impl<'a> UnsafeUnpin for DecodedField<'a>
impl<'a> UnwindSafe for DecodedField<'a>
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