Struct mpdpopm::config::GeneralizedCommandDefn [−][src]
pub struct GeneralizedCommandDefn {
pub name: String,
pub formal_parameters: Vec<FormalParameter>,
pub default_after: usize,
pub cmd: PathBuf,
pub args: Vec<String>,
pub update: Update,
}
Fields
name: String
Command name
formal_parameters: Vec<FormalParameter>
An ordered collection of formal parameter types
default_after: usize
Actual parameters may be defaulted after this many places
cmd: PathBuf
The command to be run; if not absolute, the PATH
will be searched in an system-
dependent way
args: Vec<String>
Command arguments; may include replacement parameters (like “%full-file”)
update: Update
The sort of MPD music database update that needs to take place when this command finishes
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more