#[non_exhaustive]pub struct CreatePipelineRequest {
pub parent: String,
pub pipeline: Option<Pipeline>,
pub pipeline_id: String,
pub validate_only: bool,
/* private fields */
}Expand description
The request message for the CreatePipeline 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. The parent collection in which to add this pipeline.
pipeline: Option<Pipeline>Required. The pipeline to create.
pipeline_id: StringRequired. The user-provided ID to be assigned to the Pipeline. It should
match the format ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$.
validate_only: boolOptional. If set, validate the request and preview the review, but do not post it.
Implementations§
Source§impl CreatePipelineRequest
impl CreatePipelineRequest
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_pipeline<T>(self, v: T) -> Self
pub fn set_pipeline<T>(self, v: T) -> Self
Sets the value of pipeline.
Sourcepub fn set_or_clear_pipeline<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_pipeline<T>(self, v: Option<T>) -> Self
Sets or clears the value of pipeline.
Sourcepub fn set_pipeline_id<T: Into<String>>(self, v: T) -> Self
pub fn set_pipeline_id<T: Into<String>>(self, v: T) -> Self
Sets the value of pipeline_id.
Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of validate_only.
Trait Implementations§
Source§impl Clone for CreatePipelineRequest
impl Clone for CreatePipelineRequest
Source§fn clone(&self) -> CreatePipelineRequest
fn clone(&self) -> CreatePipelineRequest
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 Debug for CreatePipelineRequest
impl Debug for CreatePipelineRequest
Source§impl Default for CreatePipelineRequest
impl Default for CreatePipelineRequest
Source§fn default() -> CreatePipelineRequest
fn default() -> CreatePipelineRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreatePipelineRequest
impl Message for CreatePipelineRequest
Source§impl PartialEq for CreatePipelineRequest
impl PartialEq for CreatePipelineRequest
impl StructuralPartialEq for CreatePipelineRequest
Auto Trait Implementations§
impl Freeze for CreatePipelineRequest
impl RefUnwindSafe for CreatePipelineRequest
impl Send for CreatePipelineRequest
impl Sync for CreatePipelineRequest
impl Unpin for CreatePipelineRequest
impl UnwindSafe for CreatePipelineRequest
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