2023-08-28 14:09:31 -05:00
|
|
|
// Standard Uses
|
2023-06-15 07:10:20 -05:00
|
|
|
|
2023-08-28 14:09:31 -05:00
|
|
|
// Crate Uses
|
|
|
|
|
|
|
|
// External Uses
|
|
|
|
|
|
|
|
const EXPECTED_GENERATED_CODE: &str = r"
|
2023-06-15 07:10:20 -05:00
|
|
|
trait Registry {
|
|
|
|
fn register(message: Credentials) -> RegisterStatus;
|
|
|
|
fn my_username() -> String;
|
|
|
|
fn tell_back(message: String) -> Result<String, TellBackError>;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(ValidatorStringBounds<[u8; 8]>)]
|
|
|
|
struct Credentials {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
struct RegisterStatus {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
struct TellBackError {
|
|
|
|
|
|
|
|
}
|
2023-08-28 14:09:31 -05:00
|
|
|
";
|
2023-06-23 22:16:35 -05:00
|
|
|
|
2023-08-28 14:09:31 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
todo!()
|
|
|
|
}
|
2023-06-15 07:10:20 -05:00
|
|
|
|