pub struct FileCoverageView {
pub branch: Option<String>,
pub commit_sha: String,
pub coverage_percent: f64,
pub covered_lines: i64,
pub file_path: String,
pub lines: Vec<FileLine>,
pub total_lines: i64,
}Expand description
File content merged with coverage data.
JSON schema
{
"title": "FileCoverageView",
"description": "File content merged with coverage data.",
"type": "object",
"required": [
"branch",
"commit_sha",
"coverage_percent",
"covered_lines",
"file_path",
"lines",
"total_lines"
],
"properties": {
"branch": {
"title": "Branch",
"type": [
"string",
"null"
]
},
"commit_sha": {
"title": "Commit Sha",
"type": "string"
},
"coverage_percent": {
"title": "Coverage Percent",
"type": "number"
},
"covered_lines": {
"title": "Covered Lines",
"type": "integer"
},
"file_path": {
"title": "File Path",
"type": "string"
},
"lines": {
"title": "Lines",
"type": "array",
"items": {
"$ref": "#/components/schemas/FileLine"
}
},
"total_lines": {
"title": "Total Lines",
"type": "integer"
}
}
}Fields§
§branch: Option<String>§commit_sha: String§coverage_percent: f64§covered_lines: i64§file_path: String§lines: Vec<FileLine>§total_lines: i64Implementations§
Source§impl FileCoverageView
impl FileCoverageView
pub fn builder() -> FileCoverageView
Trait Implementations§
Source§impl Clone for FileCoverageView
impl Clone for FileCoverageView
Source§fn clone(&self) -> FileCoverageView
fn clone(&self) -> FileCoverageView
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 FileCoverageView
impl Debug for FileCoverageView
Source§impl<'de> Deserialize<'de> for FileCoverageView
impl<'de> Deserialize<'de> for FileCoverageView
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<&FileCoverageView> for FileCoverageView
impl From<&FileCoverageView> for FileCoverageView
Source§fn from(value: &FileCoverageView) -> Self
fn from(value: &FileCoverageView) -> Self
Converts to this type from the input type.
Source§impl From<FileCoverageView> for FileCoverageView
impl From<FileCoverageView> for FileCoverageView
Source§fn from(value: FileCoverageView) -> Self
fn from(value: FileCoverageView) -> Self
Converts to this type from the input type.
Source§impl Serialize for FileCoverageView
impl Serialize for FileCoverageView
Source§impl TryFrom<FileCoverageView> for FileCoverageView
impl TryFrom<FileCoverageView> for FileCoverageView
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: FileCoverageView) -> Result<Self, ConversionError>
fn try_from(value: FileCoverageView) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for FileCoverageView
impl RefUnwindSafe for FileCoverageView
impl Send for FileCoverageView
impl Sync for FileCoverageView
impl Unpin for FileCoverageView
impl UnwindSafe for FileCoverageView
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