pub struct CognitiveTemplate {Show 13 fields
pub id: String,
pub name: String,
pub description: String,
pub version: String,
pub pattern: TemplatePattern,
pub cache_ttl: Option<u64>,
pub priority: TemplatePriority,
pub tags: Vec<String>,
pub created_at: String,
pub updated_at: String,
pub usage_count: u64,
pub success_rate: f64,
pub metadata: HashMap<String, Value>,
}
Expand description
Enhanced cognitive template definition with versioning and metadata
Fields§
§id: String
§name: String
§description: String
§version: String
§pattern: TemplatePattern
§cache_ttl: Option<u64>
§priority: TemplatePriority
§created_at: String
§updated_at: String
§usage_count: u64
§success_rate: f64
§metadata: HashMap<String, Value>
Trait Implementations§
Source§impl Clone for CognitiveTemplate
impl Clone for CognitiveTemplate
Source§fn clone(&self) -> CognitiveTemplate
fn clone(&self) -> CognitiveTemplate
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 CognitiveTemplate
impl Debug for CognitiveTemplate
Source§impl<'de> Deserialize<'de> for CognitiveTemplate
impl<'de> Deserialize<'de> for CognitiveTemplate
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
Auto Trait Implementations§
impl Freeze for CognitiveTemplate
impl RefUnwindSafe for CognitiveTemplate
impl Send for CognitiveTemplate
impl Sync for CognitiveTemplate
impl Unpin for CognitiveTemplate
impl UnwindSafe for CognitiveTemplate
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