pub struct MistOutput { /* private fields */ }Expand description
This is the successful output of a package.
Implementations§
Source§impl MistOutput
impl MistOutput
Sourcepub fn set_message(&mut self, message: String)
pub fn set_message(&mut self, message: String)
Sets the optional message in the output that the package can print out, in case there’s additional info the package wishes to provide to the end user.
Sourcepub fn with_message(self, message: String) -> Self
pub fn with_message(self, message: String) -> Self
Sets the optional message in the output that the package can print out, in case there’s additional info the package wishes to provide to the end user.
This is the same as set_message but can be used in chaining.
Sourcepub fn set_file(&mut self, filename: String, content: String)
pub fn set_file(&mut self, filename: String, content: String)
Adds a file to the output that will be rendered to the output directory.
Sourcepub fn with_file(self, filename: String, content: String) -> Self
pub fn with_file(self, filename: String, content: String) -> Self
Adds a file to the output that will be rendered to the output directory.
This is the same as add_file but can be used in chaining.
Sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
Retrieves the attached message on this object.
Trait Implementations§
Source§impl Clone for MistOutput
impl Clone for MistOutput
Source§fn clone(&self) -> MistOutput
fn clone(&self) -> MistOutput
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 MistOutput
impl Debug for MistOutput
Source§impl PartialEq for MistOutput
impl PartialEq for MistOutput
impl StructuralPartialEq for MistOutput
Auto Trait Implementations§
impl Freeze for MistOutput
impl RefUnwindSafe for MistOutput
impl Send for MistOutput
impl Sync for MistOutput
impl Unpin for MistOutput
impl UnwindSafe for MistOutput
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