#[non_exhaustive]pub struct CreateWorkflowTemplateRequest {
pub parent: String,
pub template: Option<WorkflowTemplate>,
/* private fields */
}Expand description
A request to create 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.parent: StringRequired. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.
-
For
projects.regions.workflowTemplates.create, the resource name of the region has the following format:projects/{project_id}/regions/{region} -
For
projects.locations.workflowTemplates.create, the resource name of the location has the following format:projects/{project_id}/locations/{location}
template: Option<WorkflowTemplate>Required. The Dataproc workflow template to create.
Implementations§
Source§impl CreateWorkflowTemplateRequest
impl CreateWorkflowTemplateRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
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 CreateWorkflowTemplateRequest
impl Clone for CreateWorkflowTemplateRequest
Source§fn clone(&self) -> CreateWorkflowTemplateRequest
fn clone(&self) -> CreateWorkflowTemplateRequest
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 CreateWorkflowTemplateRequest
impl Default for CreateWorkflowTemplateRequest
Source§fn default() -> CreateWorkflowTemplateRequest
fn default() -> CreateWorkflowTemplateRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateWorkflowTemplateRequest
impl PartialEq for CreateWorkflowTemplateRequest
Source§fn eq(&self, other: &CreateWorkflowTemplateRequest) -> bool
fn eq(&self, other: &CreateWorkflowTemplateRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateWorkflowTemplateRequest
Auto Trait Implementations§
impl Freeze for CreateWorkflowTemplateRequest
impl RefUnwindSafe for CreateWorkflowTemplateRequest
impl Send for CreateWorkflowTemplateRequest
impl Sync for CreateWorkflowTemplateRequest
impl Unpin for CreateWorkflowTemplateRequest
impl UnwindSafe for CreateWorkflowTemplateRequest
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