Enum wick_config::config::TriggerDefinition
source · pub enum TriggerDefinition {
Cli(CliConfig),
Http(HttpTriggerConfig),
Time(TimeTriggerConfig),
}Expand description
Normalized representation of a trigger definition.
Variants§
Cli(CliConfig)
A CLI trigger.
Http(HttpTriggerConfig)
An HTTP trigger.
Time(TimeTriggerConfig)
A time trigger.
Implementations§
source§impl TriggerDefinition
impl TriggerDefinition
sourcepub const fn kind(&self) -> TriggerKind
pub const fn kind(&self) -> TriggerKind
Returns the kind of trigger.
Trait Implementations§
source§impl AssetManager for TriggerDefinition
impl AssetManager for TriggerDefinition
type Asset = AssetReference
fn set_baseurl(&self, baseurl: &Path)
fn assets(&self) -> Assets<'_, AssetReference>
fn get_asset_flags(&self) -> u32
source§impl Clone for TriggerDefinition
impl Clone for TriggerDefinition
source§fn clone(&self) -> TriggerDefinition
fn clone(&self) -> TriggerDefinition
Returns a copy 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 TriggerDefinition
impl Debug for TriggerDefinition
source§impl ExpandImports for TriggerDefinition
impl ExpandImports for TriggerDefinition
§type Error = ManifestError
type Error = ManifestError
The type of error that may be returned when expanding imports.
source§fn expand_imports(
&mut self,
bindings: &mut Vec<Binding<ImportDefinition>>,
index: usize
) -> Result<(), Self::Error>
fn expand_imports( &mut self, bindings: &mut Vec<Binding<ImportDefinition>>, index: usize ) -> Result<(), Self::Error>
Expand imports with any inline definitions.
source§impl Serialize for TriggerDefinition
impl Serialize for TriggerDefinition
source§impl TryFrom<TriggerDefinition> for TriggerDefinition
impl TryFrom<TriggerDefinition> for TriggerDefinition
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§impl TryFrom<TriggerDefinition> for TriggerDefinition
impl TryFrom<TriggerDefinition> for TriggerDefinition
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl !RefUnwindSafe for TriggerDefinition
impl Send for TriggerDefinition
impl Sync for TriggerDefinition
impl Unpin for TriggerDefinition
impl !UnwindSafe for TriggerDefinition
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