pub struct DecodedBlob {
pub content_hash: [u8; 32],
pub metadata: BlobMetadata,
pub instructions_bytes: Vec<u8>,
pub constants_bytes: Vec<u8>,
pub strings: Vec<String>,
pub dependencies: Vec<[u8; 32]>,
pub type_schemas: Vec<String>,
pub source_map: Vec<(usize, u32, u32)>,
pub permissions: Vec<String>,
}Expand description
A fully decoded blob from wire format.
Fields§
§content_hash: [u8; 32]§metadata: BlobMetadata§instructions_bytes: Vec<u8>Raw msgpack bytes for the instructions section.
constants_bytes: Vec<u8>Raw msgpack bytes for the constants section.
strings: Vec<String>Decoded string pool.
dependencies: Vec<[u8; 32]>Dependency hashes (each 32 bytes).
type_schemas: Vec<String>Type schema names referenced by this blob.
source_map: Vec<(usize, u32, u32)>Source map entries: (local_offset, file_id, line).
permissions: Vec<String>Permission names required by this function.
Trait Implementations§
Source§impl Clone for DecodedBlob
impl Clone for DecodedBlob
Source§fn clone(&self) -> DecodedBlob
fn clone(&self) -> DecodedBlob
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 moreAuto Trait Implementations§
impl Freeze for DecodedBlob
impl RefUnwindSafe for DecodedBlob
impl Send for DecodedBlob
impl Sync for DecodedBlob
impl Unpin for DecodedBlob
impl UnsafeUnpin for DecodedBlob
impl UnwindSafe for DecodedBlob
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