pub struct Module {
pub name: String,
pub architecture: Architecture,
pub image_base: u64,
pub timestamp: u32,
pub image_size: u32,
pub hash: Option<ModuleHash>,
pub types: Vec<TypeDef>,
pub functions: Vec<Function>,
pub globals: Vec<Global>,
pub vtables: Vec<Vtable>,
}Expand description
One module (image) of a target build: an executable or a shared library.
Fields§
§name: StringThe module’s file name (e.g. "app.exe", "d3d11.dll").
architecture: ArchitectureThe module’s architecture.
image_base: u64The module’s preferred load address, from its image header.
timestamp: u32The module’s build timestamp, from its image header.
image_size: u32The module’s loaded image size in bytes, from its image header.
hash: Option<ModuleHash>A content hash of the module file, for a stronger identity check.
types: Vec<TypeDef>The module’s type table.
functions: Vec<Function>The module’s functions.
globals: Vec<Global>The module’s global variables.
vtables: Vec<Vtable>The module’s vtables.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Module
impl<'de> Deserialize<'de> for Module
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Module
impl JsonSchema for Module
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 Module
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnsafeUnpin for Module
impl UnwindSafe for Module
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