pub struct SubroutineResult {
pub output: String,
pub staged_user_vars: HashMap<String, String>,
pub staged_bot_vars: HashMap<String, String>,
}Expand description
SubroutineResult is the return value from object macro subroutines, especially those written natively in Rust.
Its job is to carry the text output of the object macro, along with any ‘staged’ user or bot variables that the macro wanted to update.
Fields§
§output: String§staged_user_vars: HashMap<String, String>§staged_bot_vars: HashMap<String, String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for SubroutineResult
impl RefUnwindSafe for SubroutineResult
impl Send for SubroutineResult
impl Sync for SubroutineResult
impl Unpin for SubroutineResult
impl UnsafeUnpin for SubroutineResult
impl UnwindSafe for SubroutineResult
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