id
int64
0
5k
task_category
stringclasses
1 value
messages
listlengths
3
3
1,088
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a memory management system for a virtual machine. The system consists of a Memory struct with methods fo...
2,333
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a function to retrieve items from an RSS feed and store them in a cache using SQLite. Your goal is to implem...
1,595
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a custom equality comparison for two types, `Unit` and `NormalValue`, in Rust. The `Unit` and `NormalVal...
3,893
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple data structure to represent a register field in a hardware description language. The given code...
4,266
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a program that manipulates file paths. Your program should define a struct `FilePath` with a field `path` of...
3,479
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a parser for a simplified programming language. The language uses tokens to represent different elements...
4,629
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust program that processes command-line arguments related to a version control system. The program should...
4,317
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a group management system in Rust. Your goal is to create a `GroupBuilder` struct that allows for the co...
2,889
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple address schema in Rust. The given code snippet provides a partial implementation of the `Addres...
1,716
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple asynchronous reader in Rust. The `Rd` struct represents the asynchronous reader, and it has a m...
2,211
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple event system for a game engine. The game engine uses the ECS (Entity-Component-System) architec...
2,616
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function to parse and extract information from a register definition in a hardware description languag...
2,021
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a function that performs type inference on the return type of the `?` operator. The function should take a r...
2,970
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a lazy loading mechanism for a hierarchical data structure. The data structure consists of a realm, whic...
2,857
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing an iterator for a custom BitSet data structure. The BitSet represents a fixed-size set of bits, where ea...
4,798
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a method for a user interface library that manages the updating and unmounting of UI components. The lib...
2,038
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a simple logging system for a web application. The application uses the Rust programming language and the `e...
4,470
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function that processes a series of PTX (Parallel Thread Execution) elements and generates a modified ...
2,632
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a test case for a file transfer functionality in a Rust application. The test case is part of an asynchronou...
4,123
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a safe abstraction for accessing a hardware peripheral in an embedded system. The peripheral in question...
1,587
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a retry logic for handling responses in a controller. The controller has a method `adjust_to_response` t...
4,138
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function that verifies a manifest for a software repository. The manifest contains information about t...
3,148
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple data structure to manage a collection of integers. The data structure should support the follow...
2,247
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with understanding and modifying the visibility and accessibility of functions within a Rust module. Given the following c...
3,485
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a program that processes a list of data entries and generates an HTML template to display the entries. Each ...
1,491
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a metrics encoder in Rust. The encoder is responsible for recording and dumping metrics with a given tim...
2,339
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a user management system for a web application. The system should include a User struct with specific fi...
1,693
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function to process a request for connecting to a specific address. The function should take in a requ...
4,426
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a progress tracking system for a software application. The system should allow for tracking individual p...
195
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function to register global metrics in a Prometheus registry. The provided code snippet is a part of a...
2,207
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function to generate pseudo-random bytes using the SHA3-512 hash function. The function `sha3_512` tak...
1,707
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust function that processes file extensions and handles configuration errors. Your task is to implement t...
4,357
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a trait-based system in Rust to control the printing behavior of different types. The code snippet provi...
3,562
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust library for handling graphical user interface (GUI) elements using the Windows API. The library will ...
3,210
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a directory traversal algorithm in Rust. You are given a `DirEntry` struct representing a directory entr...
2,837
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a program that calculates the average rate of data transfer for a set of RDMA (Remote Direct Memory Access) ...
1,367
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust macro that generates a type alias and an implementation block for a given type. The macro should take...
4,370
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a blockchain data structure in Rust. The blockchain consists of blocks, each containing a unique identif...
4,587
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple property-based testing framework in Rust. Property-based testing is a method of testing that in...
2,881
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function that processes gamepad events and updates the state of a game controller. The game controller...
1,503
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a generic data structure to manage membership state in a distributed system. The membership state should...
1,864
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple humidity sensor interface in Rust. The interface will provide functions to read the humidity va...
2,239
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple caching mechanism for a command-line application. The provided code snippet is a part of a comm...
963
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a trait and a function to convert a given duration in seconds into a time string format. The time string...
3,904
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function that processes a collection of window configurations for a game engine. Each configuration is...
4,270
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are given a Rust struct representing a cryptographic operation:\n\n```rust\nstruct CryptoOperation {\n array_pointer: *const u8,\n...
1,003
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust function that interacts with a GraphQL API to add a new user. The function should construct a GraphQL...
1,307
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are given a Rust code snippet that contains a function `part2` and a test case `generator_1`. Your task is to understand the code and...
2,150
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a program that processes user input to perform a specific task. The program should read a series of stri...
1,018
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a data structure to manage a set of instructions for a proposal system. The data structure should suppor...
1,983
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a panic-checking function for a custom bit manipulation library in Rust. The library provides functions ...
4,909
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple module system in Rust for handling HTTP requests and responses. The provided code snippet is a ...
351
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a command-line tool that manages the usage information for various commands. The provided code snippet i...
1,310
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are given a code snippet that uses the `fold` method on an iterator. The `fold` method is used to accumulate the results of a functio...
3,862
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function to calculate the sum of a list of floating-point numbers with high precision. The function sh...
2,697
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a data structure to store and retrieve information about different sizes of Nexus devices. The data stru...
2,505
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a function that interacts with the Slack API to remove a reaction from a message. The provided code snippet ...
3,323
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simplified version of a concurrent programming construct using Rust's asynchronous programming feature...
1,235
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a test case for a Rust program that simulates an exit test for a system. The test case is designed to valida...
2,841
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simplified version of a stream payment system. In this system, a `StreamPayment` struct is used to tra...
4,898
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a function that extracts specific information from a JSON string. The JSON string represents a user object w...
1,391
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple scene manager for a game engine. The scene manager is responsible for handling different scenes...
3,112
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple reference-counted smart pointer in Rust. The smart pointer should support reference counting an...
2,147
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a glyph cache for a text rendering system. A glyph cache is a data structure that stores pre-rendered gl...
2,198
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a generic function in Rust that compares the type of two input values and returns a boolean indicating w...
2,292
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple data structure to manage environment settings for a software application. The environment setti...
2,625
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a priority queue data structure using a binary heap. A priority queue is a data structure that maintains...
1,327
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust function that processes data from a CSV file and an EML file to compare timestamps. The function shou...
1,624
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with simulating a system using the Rust programming language. The system consists of a number of \"ptl\" (presumably parti...
2,572
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a module system for a web server framework in Rust. The provided code snippet is a part of the module sy...
4,031
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function that constructs a `HeightField` object in a 3D graphics application. The `HeightField` repres...
3,888
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple web server endpoint in Rust using the Actix web framework. The provided code snippet contains a...
1,015
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a build system for a software project using the Rust programming language. The project requires the integrat...
1,257
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple FPS (frames per second) tracker in Rust. The provided code snippet is part of a function that u...
1,319
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple module system for a 3D graphics application. The application should support modules for handlin...
682
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function to calculate the first set of a non-terminal symbol in a context-free grammar. The first set ...
2,757
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust program that utilizes the `hyper_proxy` and `hyper_tls` crates to make an HTTP request through a prox...
594
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a password verification system using a simple hashing algorithm. The `PasswordEncoder` struct contains t...
2,262
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple task scheduler for a multi-threaded system. The provided code snippet includes modules for vari...
1,405
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simplified version of a buffered I/O system in Rust. The provided code snippet contains a test case fo...
623
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple interpreter for a custom programming language. The language supports variables, expressions, an...
2,661
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a custom error type and handling it within a Rust function. The provided code snippet is a method signat...
45
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a parser for a specific file format. The file format consists of a series of tokens, each with a specifi...
2,534
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a cache system for a card reader application. The cache system should store the UUIDs of the cards that ...
2,662
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a generic data structure in Rust that supports a specific set of operations. The data structure is a sin...
4,605
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a custom error handling system for a new programming language. The system should allow developers to define ...
1,593
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple Read-Eval-Print Loop (REPL) in Rust. A REPL is an interactive programming environment that take...
4,607
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function to generate reaction IDs for comments in a social media platform. The function should take th...
2,136
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple music note parser in Rust. The parser should be able to extract the pitch and accidental of a m...
1,051
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple neural network in Rust. Your goal is to create a struct `NeuralNetwork` that contains a single ...
3,944
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function to handle the deserialization of a JSON response in a Rust application. The function should t...
3,929
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a custom error handling mechanism for a Rust program. The goal is to create a custom error type and asso...
4,645
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing an iterator for a custom data structure called `Channel`. The `Channel` struct represents a communicatio...
103
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a data structure to store information about game pages and a function to generate a link for the stored ...
4,975
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing an encoding trait for a serialization library. The trait, `Encoding`, has two methods: `encode` and `dec...
1,498
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a concurrent hash mining algorithm to find a specific hash value. The algorithm will utilize a specified...
3,903
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a program to manage the outline color and dimensions of various graphical elements in a user interface. The ...
520
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a custom serialization and deserialization mechanism for a Rust struct using the `serde` library. The st...
37
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a custom UUID generator in Rust. The `TypeUuid` trait is provided as a starting point, and your goal is ...
466
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a Rust program that manages different types of wallet sources. The `OptsWalletSource` enum represents th...