pub struct ProjectCreate {
pub branch: String,
pub description: Option<Description>,
pub framework: Option<Framework>,
pub language: ProjectLanguage,
pub name: Name,
pub repo_url: String,
pub workspace_id: i64,
}Expand description
Request to create a new project.
JSON schema
{
"title": "ProjectCreate",
"description": "Request to create a new project.",
"type": "object",
"required": [
"language",
"name",
"repo_url",
"workspace_id"
],
"properties": {
"branch": {
"title": "Branch",
"description": "Default branch to track",
"default": "main",
"type": "string"
},
"description": {
"title": "Description",
"description": "Project description",
"type": [
"string",
"null"
],
"maxLength": 1000
},
"framework": {
"title": "Framework",
"description": "Framework used (e.g., Django, React, Spring)",
"type": [
"string",
"null"
],
"maxLength": 100
},
"language": {
"$ref": "#/components/schemas/ProjectLanguage"
},
"name": {
"title": "Name",
"description": "Project name",
"type": "string",
"maxLength": 255,
"minLength": 1
},
"repo_url": {
"title": "Repo Url",
"description": "Git repository URL (e.g., github.com/user/repo)",
"type": "string",
"format": "uri",
"maxLength": 2083,
"minLength": 1
},
"workspace_id": {
"title": "Workspace Id",
"description": "Workspace ID where the project will be created",
"type": "integer"
}
}
}Fields§
§branch: StringDefault branch to track
description: Option<Description>Project description
framework: Option<Framework>Framework used (e.g., Django, React, Spring)
language: ProjectLanguage§name: NameProject name
repo_url: StringGit repository URL (e.g., github.com/user/repo)
workspace_id: i64Workspace ID where the project will be created
Implementations§
Source§impl ProjectCreate
impl ProjectCreate
pub fn builder() -> ProjectCreate
Trait Implementations§
Source§impl Clone for ProjectCreate
impl Clone for ProjectCreate
Source§fn clone(&self) -> ProjectCreate
fn clone(&self) -> ProjectCreate
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 ProjectCreate
impl Debug for ProjectCreate
Source§impl<'de> Deserialize<'de> for ProjectCreate
impl<'de> Deserialize<'de> for ProjectCreate
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 From<&ProjectCreate> for ProjectCreate
impl From<&ProjectCreate> for ProjectCreate
Source§fn from(value: &ProjectCreate) -> Self
fn from(value: &ProjectCreate) -> Self
Converts to this type from the input type.
Source§impl From<ProjectCreate> for ProjectCreate
impl From<ProjectCreate> for ProjectCreate
Source§fn from(value: ProjectCreate) -> Self
fn from(value: ProjectCreate) -> Self
Converts to this type from the input type.
Source§impl Serialize for ProjectCreate
impl Serialize for ProjectCreate
Source§impl TryFrom<ProjectCreate> for ProjectCreate
impl TryFrom<ProjectCreate> for ProjectCreate
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ProjectCreate) -> Result<Self, ConversionError>
fn try_from(value: ProjectCreate) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ProjectCreate
impl RefUnwindSafe for ProjectCreate
impl Send for ProjectCreate
impl Sync for ProjectCreate
impl Unpin for ProjectCreate
impl UnwindSafe for ProjectCreate
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