pub struct SuggestionMetadata {
pub source: Option<String>,
pub priority: Option<i32>,
pub category: Option<String>,
pub extra: HashMap<String, Value>,
}Expand description
Metadata for a completion suggestion.
This struct captures common metadata fields while allowing additional
custom fields through the extra field.
Fields§
§source: Option<String>The source of the suggestion (e.g., “history”, “model”, “cache”)
priority: Option<i32>Priority level for the suggestion
category: Option<String>Category of the suggestion
extra: HashMap<String, Value>Any additional metadata fields
Trait Implementations§
Source§impl Clone for SuggestionMetadata
impl Clone for SuggestionMetadata
Source§fn clone(&self) -> SuggestionMetadata
fn clone(&self) -> SuggestionMetadata
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 SuggestionMetadata
impl Debug for SuggestionMetadata
Source§impl<'de> Deserialize<'de> for SuggestionMetadata
impl<'de> Deserialize<'de> for SuggestionMetadata
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 PartialEq for SuggestionMetadata
impl PartialEq for SuggestionMetadata
Source§impl Serialize for SuggestionMetadata
impl Serialize for SuggestionMetadata
impl StructuralPartialEq for SuggestionMetadata
Auto Trait Implementations§
impl Freeze for SuggestionMetadata
impl RefUnwindSafe for SuggestionMetadata
impl Send for SuggestionMetadata
impl Sync for SuggestionMetadata
impl Unpin for SuggestionMetadata
impl UnwindSafe for SuggestionMetadata
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