pub struct SemanticSearchResult {
pub id: Option<String>,
pub type: Option<SemanticSearchResultType>,
pub issue: Option<Issue>,
pub project: Option<Project>,
pub initiative: Option<Initiative>,
pub document: Option<Document>,
}Expand description
A reference to an entity returned by semantic search, containing its type and ID. Resolve the specific entity using the type-specific field resolvers (issue, project, initiative, document).
Fields§
§id: Option<String>The unique identifier of the entity.
type: Option<SemanticSearchResultType>The type of the semantic search result.
issue: Option<Issue>The issue entity, if this search result is of type Issue. Null for other result types.
project: Option<Project>The project entity, if this search result is of type Project. Null for other result types.
initiative: Option<Initiative>The initiative entity, if this search result is of type Initiative. Null for other result types.
document: Option<Document>The document entity, if this search result is of type Document. Null for other result types.
Trait Implementations§
Source§impl Clone for SemanticSearchResult
impl Clone for SemanticSearchResult
Source§fn clone(&self) -> SemanticSearchResult
fn clone(&self) -> SemanticSearchResult
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 SemanticSearchResult
impl Debug for SemanticSearchResult
Source§impl Default for SemanticSearchResult
impl Default for SemanticSearchResult
Source§fn default() -> SemanticSearchResult
fn default() -> SemanticSearchResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SemanticSearchResultwhere
SemanticSearchResult: Default,
impl<'de> Deserialize<'de> for SemanticSearchResultwhere
SemanticSearchResult: Default,
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 GraphQLFields for SemanticSearchResult
impl GraphQLFields for SemanticSearchResult
Auto Trait Implementations§
impl Freeze for SemanticSearchResult
impl RefUnwindSafe for SemanticSearchResult
impl Send for SemanticSearchResult
impl Sync for SemanticSearchResult
impl Unpin for SemanticSearchResult
impl UnsafeUnpin for SemanticSearchResult
impl UnwindSafe for SemanticSearchResult
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