pub struct MessageResult {
pub message: String,
pub details: Vec<String>,
}Expand description
Shared {message, details} result for commands whose output is a
short headline plus a list of secondary lines. Renders through the
message template. Per-command result types (e.g. InitResult,
AddIgnoreResult) exist for backwards compatibility and where
commands grow additional fields; use MessageResult for new
commands that need only headline + lines.
Fields§
§message: String§details: Vec<String>Trait Implementations§
Source§impl Clone for MessageResult
impl Clone for MessageResult
Source§fn clone(&self) -> MessageResult
fn clone(&self) -> MessageResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageResult
impl Debug for MessageResult
Auto Trait Implementations§
impl Freeze for MessageResult
impl RefUnwindSafe for MessageResult
impl Send for MessageResult
impl Sync for MessageResult
impl Unpin for MessageResult
impl UnsafeUnpin for MessageResult
impl UnwindSafe for MessageResult
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