Create credit with unknown attribution.
(change_hash: Hash, timestamp: DateTime<Utc>)
| 282 | |
| 283 | /// Create credit with unknown attribution. |
| 284 | pub fn unknown(change_hash: Hash, timestamp: DateTime<Utc>) -> Self { |
| 285 | Self { |
| 286 | author_name: "Unknown".to_string(), |
| 287 | author_email: None, |
| 288 | credit_type: CreditType::Unknown, |
| 289 | ai_vendor: None, |
| 290 | ai_model: None, |
| 291 | change_hash, |
| 292 | timestamp, |
| 293 | confidence: None, |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | /// Set the confidence level (0.0 to 1.0, stored as 0-100). |
| 298 | pub fn with_confidence(mut self, confidence: f32) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected