pub struct CreatePipelineRequest {
pub default_branch: String,
pub description: Option<String>,
pub name: String,
pub repo_name: Option<String>,
pub repository: String,
}Expand description
Creates a pipeline within an organization. The slug is derived from the name; a slug collision within the organization is rejected.
JSON schema
{
"title": "CreatePipelineRequest",
"description": "Creates a pipeline within an organization. The slug is
derived from the name; a slug collision within the organization is
rejected.",
"type": "object",
"required": [
"default_branch",
"name",
"repository"
],
"properties": {
"default_branch": {
"description": "The branch built by default.",
"type": "string"
},
"description": {
"description": "Optional human description.",
"type": [
"string",
"null"
]
},
"name": {
"description": "Display name.",
"type": "string"
},
"repo_name": {
"description": "Optional `owner/repo` label. When omitted it is
derived from `repository`.",
"type": [
"string",
"null"
]
},
"repository": {
"description": "The source repository this pipeline builds.",
"type": "string"
}
}
}Fields§
§default_branch: StringThe branch built by default.
description: Option<String>Optional human description.
name: StringDisplay name.
repo_name: Option<String>Optional owner/repo label. When omitted it is derived from
repository.
repository: StringThe source repository this pipeline builds.
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 (const: unstable) · 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<'de> Deserialize<'de> for CreatePipelineRequest
impl<'de> Deserialize<'de> for CreatePipelineRequest
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
Auto Trait Implementations§
impl Freeze for CreatePipelineRequest
impl RefUnwindSafe for CreatePipelineRequest
impl Send for CreatePipelineRequest
impl Sync for CreatePipelineRequest
impl Unpin for CreatePipelineRequest
impl UnsafeUnpin 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