pub struct FileTreeResponse {
pub branch: Option<String>,
pub commit_sha: String,
pub coverage_report_id: Option<i64>,
pub overall_coverage: Option<f64>,
pub repository_name: String,
pub repository_owner: String,
pub tree: Vec<FileNode>,
}Expand description
Response containing file tree with coverage data.
JSON schema
{
"title": "FileTreeResponse",
"description": "Response containing file tree with coverage data.",
"type": "object",
"required": [
"branch",
"commit_sha",
"coverage_report_id",
"repository_name",
"repository_owner",
"tree"
],
"properties": {
"branch": {
"title": "Branch",
"type": [
"string",
"null"
]
},
"commit_sha": {
"title": "Commit Sha",
"type": "string"
},
"coverage_report_id": {
"title": "Coverage Report Id",
"type": [
"integer",
"null"
]
},
"overall_coverage": {
"title": "Overall Coverage",
"type": [
"number",
"null"
]
},
"repository_name": {
"title": "Repository Name",
"type": "string"
},
"repository_owner": {
"title": "Repository Owner",
"type": "string"
},
"tree": {
"title": "Tree",
"type": "array",
"items": {
"$ref": "#/components/schemas/FileNode"
}
}
}
}Fields§
§branch: Option<String>§commit_sha: String§coverage_report_id: Option<i64>§overall_coverage: Option<f64>§repository_name: String§repository_owner: String§tree: Vec<FileNode>Implementations§
Source§impl FileTreeResponse
impl FileTreeResponse
pub fn builder() -> FileTreeResponse
Trait Implementations§
Source§impl Clone for FileTreeResponse
impl Clone for FileTreeResponse
Source§fn clone(&self) -> FileTreeResponse
fn clone(&self) -> FileTreeResponse
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 FileTreeResponse
impl Debug for FileTreeResponse
Source§impl<'de> Deserialize<'de> for FileTreeResponse
impl<'de> Deserialize<'de> for FileTreeResponse
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<&FileTreeResponse> for FileTreeResponse
impl From<&FileTreeResponse> for FileTreeResponse
Source§fn from(value: &FileTreeResponse) -> Self
fn from(value: &FileTreeResponse) -> Self
Converts to this type from the input type.
Source§impl From<FileTreeResponse> for FileTreeResponse
impl From<FileTreeResponse> for FileTreeResponse
Source§fn from(value: FileTreeResponse) -> Self
fn from(value: FileTreeResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for FileTreeResponse
impl Serialize for FileTreeResponse
Source§impl TryFrom<FileTreeResponse> for FileTreeResponse
impl TryFrom<FileTreeResponse> for FileTreeResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: FileTreeResponse) -> Result<Self, ConversionError>
fn try_from(value: FileTreeResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for FileTreeResponse
impl RefUnwindSafe for FileTreeResponse
impl Send for FileTreeResponse
impl Sync for FileTreeResponse
impl Unpin for FileTreeResponse
impl UnwindSafe for FileTreeResponse
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