Struct cargo_make::types::ConfigSection [] [src]

pub struct ConfigSection {
    pub init_task: Option<String>,
    pub end_task: Option<String>,
    pub load_script: Option<Vec<String>>,
    pub linux_load_script: Option<Vec<String>>,
    pub windows_load_script: Option<Vec<String>>,
    pub mac_load_script: Option<Vec<String>>,
}

Holds the configuration found in the makefile toml config section.

Fields

Init task name which will be invoked at the start of every run

End task name which will be invoked at the end of every run

Invoked while loading the descriptor file but before loading any extended descriptor

acts like load_script if runtime OS is Linux (takes precedence over load_script)

acts like load_script if runtime OS is Windows (takes precedence over load_script)

acts like load_script if runtime OS is Mac (takes precedence over load_script)

Methods

impl ConfigSection
[src]

[src]

Creates and returns a new instance.

[src]

Copies values from the config section into self.

Arguments

  • task - The task to copy from

[src]

Returns the load script based on the current platform

Trait Implementations

impl Debug for ConfigSection
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for ConfigSection
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more