pub struct CodeSearchMatch {
pub indices: Option<Vec<i64>>,
pub text: String,
}Expand description
A single text match in search results.
JSON schema
{
"title": "CodeSearchMatch",
"description": "A single text match in search results.",
"type": "object",
"required": [
"text"
],
"properties": {
"indices": {
"title": "Indices",
"type": [
"array",
"null"
],
"items": {
"type": "integer"
}
},
"text": {
"title": "Text",
"type": "string"
}
}
}Fields§
§indices: Option<Vec<i64>>§text: StringImplementations§
Source§impl CodeSearchMatch
impl CodeSearchMatch
pub fn builder() -> CodeSearchMatch
Trait Implementations§
Source§impl Clone for CodeSearchMatch
impl Clone for CodeSearchMatch
Source§fn clone(&self) -> CodeSearchMatch
fn clone(&self) -> CodeSearchMatch
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 CodeSearchMatch
impl Debug for CodeSearchMatch
Source§impl<'de> Deserialize<'de> for CodeSearchMatch
impl<'de> Deserialize<'de> for CodeSearchMatch
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<&CodeSearchMatch> for CodeSearchMatch
impl From<&CodeSearchMatch> for CodeSearchMatch
Source§fn from(value: &CodeSearchMatch) -> Self
fn from(value: &CodeSearchMatch) -> Self
Converts to this type from the input type.
Source§impl From<CodeSearchMatch> for CodeSearchMatch
impl From<CodeSearchMatch> for CodeSearchMatch
Source§fn from(value: CodeSearchMatch) -> Self
fn from(value: CodeSearchMatch) -> Self
Converts to this type from the input type.
Source§impl Serialize for CodeSearchMatch
impl Serialize for CodeSearchMatch
Source§impl TryFrom<CodeSearchMatch> for CodeSearchMatch
impl TryFrom<CodeSearchMatch> for CodeSearchMatch
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CodeSearchMatch) -> Result<Self, ConversionError>
fn try_from(value: CodeSearchMatch) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CodeSearchMatch
impl RefUnwindSafe for CodeSearchMatch
impl Send for CodeSearchMatch
impl Sync for CodeSearchMatch
impl Unpin for CodeSearchMatch
impl UnwindSafe for CodeSearchMatch
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