#[non_exhaustive]pub struct UpdateWorkflowTemplateRequest {
pub template: Option<WorkflowTemplate>,
/* private fields */
}Expand description
A request to update a workflow template.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.template: Option<WorkflowTemplate>Required. The updated workflow template.
The template.version field must match the current version.
Implementations§
Source§impl UpdateWorkflowTemplateRequest
impl UpdateWorkflowTemplateRequest
pub fn new() -> Self
Sourcepub fn set_template<T>(self, v: T) -> Selfwhere
T: Into<WorkflowTemplate>,
pub fn set_template<T>(self, v: T) -> Selfwhere
T: Into<WorkflowTemplate>,
Sets the value of template.
Sourcepub fn set_or_clear_template<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkflowTemplate>,
pub fn set_or_clear_template<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkflowTemplate>,
Sets or clears the value of template.
Trait Implementations§
Source§impl Clone for UpdateWorkflowTemplateRequest
impl Clone for UpdateWorkflowTemplateRequest
Source§fn clone(&self) -> UpdateWorkflowTemplateRequest
fn clone(&self) -> UpdateWorkflowTemplateRequest
Returns a duplicate 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 Default for UpdateWorkflowTemplateRequest
impl Default for UpdateWorkflowTemplateRequest
Source§fn default() -> UpdateWorkflowTemplateRequest
fn default() -> UpdateWorkflowTemplateRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdateWorkflowTemplateRequest
impl PartialEq for UpdateWorkflowTemplateRequest
Source§fn eq(&self, other: &UpdateWorkflowTemplateRequest) -> bool
fn eq(&self, other: &UpdateWorkflowTemplateRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateWorkflowTemplateRequest
Auto Trait Implementations§
impl Freeze for UpdateWorkflowTemplateRequest
impl RefUnwindSafe for UpdateWorkflowTemplateRequest
impl Send for UpdateWorkflowTemplateRequest
impl Sync for UpdateWorkflowTemplateRequest
impl Unpin for UpdateWorkflowTemplateRequest
impl UnwindSafe for UpdateWorkflowTemplateRequest
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