pub struct ExtensionDefinition {
pub extend: String,
pub when: Option<String>,
pub before: Option<Vec<HashMap<String, TaskDefinition>>>,
pub after: Option<Vec<HashMap<String, TaskDefinition>>>,
}Expand description
Represents the definition of an extension
Fields§
§extend: StringGets/sets the type of task to extend
when: Option<String>Gets/sets a runtime expression, if any, used to determine whether or not the extension should apply in the specified context
before: Option<Vec<HashMap<String, TaskDefinition>>>Gets/sets a name/definition list, if any, of the tasks to execute before the extended task
after: Option<Vec<HashMap<String, TaskDefinition>>>Gets/sets a name/definition list, if any, of the tasks to execute after the extended task
Trait Implementations§
Source§impl Clone for ExtensionDefinition
impl Clone for ExtensionDefinition
Source§fn clone(&self) -> ExtensionDefinition
fn clone(&self) -> ExtensionDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExtensionDefinition
impl Debug for ExtensionDefinition
Source§impl Default for ExtensionDefinition
impl Default for ExtensionDefinition
Source§fn default() -> ExtensionDefinition
fn default() -> ExtensionDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExtensionDefinition
impl<'de> Deserialize<'de> for ExtensionDefinition
Source§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
Source§impl PartialEq for ExtensionDefinition
impl PartialEq for ExtensionDefinition
Source§fn eq(&self, other: &ExtensionDefinition) -> bool
fn eq(&self, other: &ExtensionDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExtensionDefinition
impl Serialize for ExtensionDefinition
impl StructuralPartialEq for ExtensionDefinition
Auto Trait Implementations§
impl Freeze for ExtensionDefinition
impl RefUnwindSafe for ExtensionDefinition
impl Send for ExtensionDefinition
impl Sync for ExtensionDefinition
impl Unpin for ExtensionDefinition
impl UnsafeUnpin for ExtensionDefinition
impl UnwindSafe for ExtensionDefinition
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