1use crate::SharedString; 2 3/// An interface for application code. 4pub trait ApplicationCode { 5 /// An integer code for the application. 6 fn code(&self) -> i32; 7 8 /// A descriptive message. 9 fn message(&self) -> SharedString; 10}