pub struct Bytes {
pub hex: String,
pub bytes: Vec<u8>,
}Expand description
A byte payload rendered both as a hex string and a decoded array.
Returned by every tool that reads bytes so an agent can reason about register values in hex while still having the raw integers.
Fields§
§hex: StringComma-separated 0xNN tokens, e.g. "0x48,0x00". Empty string for no bytes.
bytes: Vec<u8>Decoded byte values.
Implementations§
Trait Implementations§
impl Eq for Bytes
Source§impl JsonSchema for Bytes
impl JsonSchema for Bytes
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Bytes
Auto Trait Implementations§
impl Freeze for Bytes
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnsafeUnpin for Bytes
impl UnwindSafe for Bytes
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