19 lines
423 B
Rust
19 lines
423 B
Rust
//! Model-visible hook context, attributed by the executor that produced it.
|
|
|
|
use akode_protocol::models::ContentItemMetadata;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
pub struct HookContext {
|
|
pub text: String,
|
|
pub metadata: ContentItemMetadata,
|
|
}
|
|
|
|
impl HookContext {
|
|
pub fn harness(text: String) -> Self {
|
|
Self {
|
|
text,
|
|
metadata: ContentItemMetadata::harness(),
|
|
}
|
|
}
|
|
}
|