Create credit for purely human-authored content.
(
name: impl Into<String>,
email: Option<impl Into<String>>,
change_hash: Hash,
timestamp: DateTime<Utc>,
)
| 199 | impl Credit { |
| 200 | /// Create credit for purely human-authored content. |
| 201 | pub fn human( |
| 202 | name: impl Into<String>, |
| 203 | email: Option<impl Into<String>>, |
| 204 | change_hash: Hash, |
| 205 | timestamp: DateTime<Utc>, |
| 206 | ) -> Self { |
| 207 | Self { |
| 208 | author_name: name.into(), |
| 209 | author_email: email.map(Into::into), |
| 210 | credit_type: CreditType::Human, |
| 211 | ai_vendor: None, |
| 212 | ai_model: None, |
| 213 | change_hash, |
| 214 | timestamp, |
| 215 | confidence: None, |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | /// Create credit for AI-assisted content. |
| 220 | pub fn ai_assisted( |
nothing calls this directly
no outgoing calls
no test coverage detected