rust: Fix "Explicit lifetime bound required"
rust: Add #[repr(C)] to FFI structs