pub struct ProjectUpdate {
pub branch: Option<String>,
pub coverage: Option<f64>,
pub description: Option<Description>,
pub framework: Option<Framework>,
pub language: Option<ProjectUpdateLanguage>,
pub name: Option<Name>,
pub repo_url: Option<String>,
pub status: Option<ProjectUpdateStatus>,
}Expand description
Request to update a project.
JSON schema
{
"title": "ProjectUpdate",
"description": "Request to update a project.",
"type": "object",
"properties": {
"branch": {
"title": "Branch",
"description": "Default branch to track",
"type": [
"string",
"null"
]
},
"coverage": {
"title": "Coverage",
"description": "Code coverage percentage",
"type": [
"number",
"null"
],
"maximum": 100.0,
"minimum": 0.0
},
"description": {
"title": "Description",
"description": "Project description",
"type": [
"string",
"null"
],
"maxLength": 1000
},
"framework": {
"title": "Framework",
"description": "Framework used",
"type": [
"string",
"null"
],
"maxLength": 100
},
"language": {
"description": "Primary programming language",
"anyOf": [
{
"$ref": "#/components/schemas/ProjectLanguage"
},
{
"type": [
"object",
"null"
]
}
]
},
"name": {
"title": "Name",
"description": "Project name",
"type": [
"string",
"null"
],
"maxLength": 255,
"minLength": 1
},
"repo_url": {
"title": "Repo Url",
"description": "Git repository URL",
"type": [
"string",
"null"
],
"format": "uri",
"maxLength": 2083,
"minLength": 1
},
"status": {
"description": "CI/CD status",
"anyOf": [
{
"$ref": "#/components/schemas/ProjectStatus"
},
{
"type": [
"object",
"null"
]
}
]
}
}
}Fields§
§branch: Option<String>Default branch to track
coverage: Option<f64>Code coverage percentage
description: Option<Description>Project description
framework: Option<Framework>Framework used
language: Option<ProjectUpdateLanguage>Primary programming language
name: Option<Name>Project name
repo_url: Option<String>Git repository URL
status: Option<ProjectUpdateStatus>CI/CD status
Implementations§
Source§impl ProjectUpdate
impl ProjectUpdate
pub fn builder() -> ProjectUpdate
Trait Implementations§
Source§impl Clone for ProjectUpdate
impl Clone for ProjectUpdate
Source§fn clone(&self) -> ProjectUpdate
fn clone(&self) -> ProjectUpdate
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 ProjectUpdate
impl Debug for ProjectUpdate
Source§impl Default for ProjectUpdate
impl Default for ProjectUpdate
Source§impl<'de> Deserialize<'de> for ProjectUpdate
impl<'de> Deserialize<'de> for ProjectUpdate
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<&ProjectUpdate> for ProjectUpdate
impl From<&ProjectUpdate> for ProjectUpdate
Source§fn from(value: &ProjectUpdate) -> Self
fn from(value: &ProjectUpdate) -> Self
Converts to this type from the input type.
Source§impl From<ProjectUpdate> for ProjectUpdate
impl From<ProjectUpdate> for ProjectUpdate
Source§fn from(value: ProjectUpdate) -> Self
fn from(value: ProjectUpdate) -> Self
Converts to this type from the input type.
Source§impl Serialize for ProjectUpdate
impl Serialize for ProjectUpdate
Source§impl TryFrom<ProjectUpdate> for ProjectUpdate
impl TryFrom<ProjectUpdate> for ProjectUpdate
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ProjectUpdate) -> Result<Self, ConversionError>
fn try_from(value: ProjectUpdate) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ProjectUpdate
impl RefUnwindSafe for ProjectUpdate
impl Send for ProjectUpdate
impl Sync for ProjectUpdate
impl Unpin for ProjectUpdate
impl UnwindSafe for ProjectUpdate
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