systemprompt_models/content/link.rs
1use schemars::JsonSchema;
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, JsonSchema)]
5pub struct ContentLink {
6 pub title: String,
7 pub url: String,
8}
9
10impl ContentLink {
11 pub fn new(title: impl Into<String>, url: impl Into<String>) -> Self {
12 Self {
13 title: title.into(),
14 url: url.into(),
15 }
16 }
17}