pub struct CodeSearchResult {
pub git_url: String,
pub html_url: String,
pub name: String,
pub path: String,
pub repository_name: String,
pub repository_owner: String,
pub score: f64,
pub sha: String,
pub text_matches: Option<Vec<CodeSearchMatch>>,
pub url: String,
}Expand description
A single code search result.
JSON schema
{
"title": "CodeSearchResult",
"description": "A single code search result.",
"type": "object",
"required": [
"git_url",
"html_url",
"name",
"path",
"repository_name",
"repository_owner",
"score",
"sha",
"url"
],
"properties": {
"git_url": {
"title": "Git Url",
"type": "string"
},
"html_url": {
"title": "Html Url",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"path": {
"title": "Path",
"type": "string"
},
"repository_name": {
"title": "Repository Name",
"type": "string"
},
"repository_owner": {
"title": "Repository Owner",
"type": "string"
},
"score": {
"title": "Score",
"type": "number"
},
"sha": {
"title": "Sha",
"type": "string"
},
"text_matches": {
"title": "Text Matches",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/CodeSearchMatch"
}
},
"url": {
"title": "Url",
"type": "string"
}
}
}Fields§
§git_url: String§html_url: String§name: String§path: String§repository_name: String§repository_owner: String§score: f64§sha: String§text_matches: Option<Vec<CodeSearchMatch>>§url: StringImplementations§
Source§impl CodeSearchResult
impl CodeSearchResult
pub fn builder() -> CodeSearchResult
Trait Implementations§
Source§impl Clone for CodeSearchResult
impl Clone for CodeSearchResult
Source§fn clone(&self) -> CodeSearchResult
fn clone(&self) -> CodeSearchResult
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 CodeSearchResult
impl Debug for CodeSearchResult
Source§impl<'de> Deserialize<'de> for CodeSearchResult
impl<'de> Deserialize<'de> for CodeSearchResult
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<&CodeSearchResult> for CodeSearchResult
impl From<&CodeSearchResult> for CodeSearchResult
Source§fn from(value: &CodeSearchResult) -> Self
fn from(value: &CodeSearchResult) -> Self
Converts to this type from the input type.
Source§impl From<CodeSearchResult> for CodeSearchResult
impl From<CodeSearchResult> for CodeSearchResult
Source§fn from(value: CodeSearchResult) -> Self
fn from(value: CodeSearchResult) -> Self
Converts to this type from the input type.
Source§impl Serialize for CodeSearchResult
impl Serialize for CodeSearchResult
Source§impl TryFrom<CodeSearchResult> for CodeSearchResult
impl TryFrom<CodeSearchResult> for CodeSearchResult
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CodeSearchResult) -> Result<Self, ConversionError>
fn try_from(value: CodeSearchResult) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CodeSearchResult
impl RefUnwindSafe for CodeSearchResult
impl Send for CodeSearchResult
impl Sync for CodeSearchResult
impl Unpin for CodeSearchResult
impl UnwindSafe for CodeSearchResult
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