pub struct TriggerBuilder { /* private fields */ }Expand description
Consuming builder for Trigger. Validation runs in Self::build.
Implementations§
Source§impl TriggerBuilder
impl TriggerBuilder
Sourcepub fn customizable_input_parameters<I, T>(self, values: I) -> Self
pub fn customizable_input_parameters<I, T>(self, values: I) -> Self
Adds the input values passed to the workflow’s trigger. Replaces the collection; order is preserved.
Sourcepub fn customizable_input_parameter(
self,
value: impl Into<InputParameter>,
) -> Self
pub fn customizable_input_parameter( self, value: impl Into<InputParameter>, ) -> Self
Appends one item to the collection.
Sourcepub fn clear_customizable_input_parameters(self) -> Self
pub fn clear_customizable_input_parameters(self) -> Self
Omits customizable_input_parameters, including any model default.
Sourcepub fn extension(self, key: impl Into<String>, value: impl Into<Value>) -> Self
pub fn extension(self, key: impl Into<String>, value: impl Into<Value>) -> Self
Adds or replaces an unmodeled extension; reserved names fail at build time.
Sourcepub fn build(self) -> Result<Trigger, ValidationError>
pub fn build(self) -> Result<Trigger, ValidationError>
Validates all fields and their receiving context.
§Errors
Returns a ValidationError for missing fields, invalid values, reserved
extension names, or unsupported field combinations and child contexts.
Trait Implementations§
Source§impl Clone for TriggerBuilder
impl Clone for TriggerBuilder
Source§impl Debug for TriggerBuilder
impl Debug for TriggerBuilder
Auto Trait Implementations§
impl Forget for TriggerBuilder
impl Freeze for TriggerBuilder
impl Move for TriggerBuilder
impl RefUnwindSafe for TriggerBuilder
impl Send for TriggerBuilder
impl Sync for TriggerBuilder
impl Unpin for TriggerBuilder
impl UnsafeUnpin for TriggerBuilder
impl UnwindSafe for TriggerBuilder
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