#[non_exhaustive]pub struct CreateWorkflowRequest {
pub parent: String,
pub workflow: Option<Workflow>,
pub workflow_id: String,
/* private fields */
}Expand description
Request for the CreateWorkflow method.
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. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location}
workflow: Option<Workflow>Required. Workflow to be created.
workflow_id: StringRequired. The ID of the workflow to be created. It has to fulfill the following requirements:
- Must contain only letters, numbers, underscores and hyphens.
- Must start with a letter.
- Must be between 1-64 characters.
- Must end with a number or a letter.
- Must be unique within the customer project and location.
Implementations§
Source§impl CreateWorkflowRequest
impl CreateWorkflowRequest
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_workflow_id<T: Into<String>>(self, v: T) -> Self
pub fn set_workflow_id<T: Into<String>>(self, v: T) -> Self
Sets the value of workflow_id.
Trait Implementations§
Source§impl Clone for CreateWorkflowRequest
impl Clone for CreateWorkflowRequest
Source§fn clone(&self) -> CreateWorkflowRequest
fn clone(&self) -> CreateWorkflowRequest
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 CreateWorkflowRequest
impl Debug for CreateWorkflowRequest
Source§impl Default for CreateWorkflowRequest
impl Default for CreateWorkflowRequest
Source§fn default() -> CreateWorkflowRequest
fn default() -> CreateWorkflowRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateWorkflowRequestwhere
CreateWorkflowRequest: Default,
impl<'de> Deserialize<'de> for CreateWorkflowRequestwhere
CreateWorkflowRequest: Default,
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 Message for CreateWorkflowRequest
impl Message for CreateWorkflowRequest
Source§impl PartialEq for CreateWorkflowRequest
impl PartialEq for CreateWorkflowRequest
Source§impl Serialize for CreateWorkflowRequest
impl Serialize for CreateWorkflowRequest
impl StructuralPartialEq for CreateWorkflowRequest
Auto Trait Implementations§
impl Freeze for CreateWorkflowRequest
impl RefUnwindSafe for CreateWorkflowRequest
impl Send for CreateWorkflowRequest
impl Sync for CreateWorkflowRequest
impl Unpin for CreateWorkflowRequest
impl UnwindSafe for CreateWorkflowRequest
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