Create a new file change for an added file. # Arguments `path` - Path to the file `encoding` - Detected encoding
(path: impl Into<String>, encoding: Encoding)
| 428 | /// * `path` - Path to the file |
| 429 | /// * `encoding` - Detected encoding |
| 430 | pub fn added(path: impl Into<String>, encoding: Encoding) -> Self { |
| 431 | Self { |
| 432 | path: path.into(), |
| 433 | inode: None, |
| 434 | position: None, |
| 435 | kind: FileChangeKind::Added { encoding }, |
| 436 | metadata: None, |
| 437 | size: None, |
| 438 | mtime: None, |
| 439 | } |
| 440 | } |
| 441 | |
| 442 | /// Create a new file change for a modified file. |
| 443 | /// |