pub struct BuildPretty {Show 13 fields
pub tasks: Vec<(&'static str, Task)>,
pub safe_panic: bool,
pub cargo_pkg_name: Option<&'static str>,
pub cargo_pkg_version: Option<&'static str>,
pub message_warning_notice: Option<String>,
pub message_process_begin: Option<String>,
pub message_process_end: Option<String>,
pub message_task_begin: Option<String>,
pub message_task_body: Option<String>,
pub message_task_succeeded: Option<String>,
pub message_task_error: Option<String>,
pub message_task_error_notice: Option<String>,
pub message_safe_panic: Option<String>,
}
Fields§
§tasks: Vec<(&'static str, Task)>
[ ( task_name, task ), … ]
Helper methods are available:
for command: queue_command
, queue_commands
for fn : queue_fn
, queue_fns
safe_panic: bool
true => panic! if task was failed. (default) false => run all tasks and return results.
cargo_pkg_name: Option<&'static str>
Replacement value of “{cargo_pkg_name}” in a message.
see also: build_pretty!
macro.
cargo_pkg_version: Option<&'static str>
Replacement value of “{cargo_pkg_name}” in a message.
see also: build_pretty!
macro.
message_warning_notice: Option<String>
Notice about warnings
that are displayed on the left side by Cargo:warning
. Set to None if not needed.
message_process_begin: Option<String>
Template for a message announcing the start of the build process. Set to None if not needed.
message_process_end: Option<String>
Template for a message announcing the end of the build process. Set to None if not needed.
message_task_begin: Option<String>
Template for a message announcing the start of the task. Set to None if not needed.
message_task_body: Option<String>
Template for a message from the task output. Set to None if not needed.
message_task_succeeded: Option<String>
Template for a message announcing a succeeded of the task. Set to None if not needed.
message_task_error: Option<String>
Template for a message announcing an error of the task. Set to None if not needed.
message_task_error_notice: Option<String>
Template for a message announcing notice of an error of the task. Set to None if not needed.
message_safe_panic: Option<String>
Template for the safe panic message. Set to None if not needed.