pub enum FileValidationError {
NotInAssetMap {
uuid: String,
original_file_name: Option<String>,
},
Missing {
uuid: String,
path: PathBuf,
},
SizeMismatch {
uuid: String,
path: PathBuf,
expected: u64,
actual: u64,
},
HashMismatch {
uuid: String,
path: PathBuf,
expected: String,
actual: String,
},
Io {
uuid: String,
path: PathBuf,
message: String,
},
DuplicatePklAssetId {
uuid: String,
pkl_id: String,
},
}Expand description
Errors found during PKL file manifest / hash / cross-reference validation.
Per SMPTE ST 2067-2 §7-9, the AssetMap, PKL, and CPL must maintain consistent cross-references. These errors describe structural violations.
Variants§
NotInAssetMap
PKL lists an asset UUID that has no entry in the AssetMap (ST 2067-2 §7).
Missing
File expected on disk but not found.
SizeMismatch
File exists but its byte size differs from the PKL declaration.
HashMismatch
Hash digest does not match PKL hash (SHA-1 or SHA-256).
Io
I/O error while reading the file for hashing.
DuplicatePklAssetId
Same asset UUID appears more than once in a single PKL (ST 2067-2 §9).
Implementations§
Trait Implementations§
Source§impl Debug for FileValidationError
impl Debug for FileValidationError
Source§impl Display for FileValidationError
impl Display for FileValidationError
Source§impl From<&FileValidationError> for ValidationIssue
impl From<&FileValidationError> for ValidationIssue
Source§fn from(err: &FileValidationError) -> Self
fn from(err: &FileValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FileValidationError
impl RefUnwindSafe for FileValidationError
impl Send for FileValidationError
impl Sync for FileValidationError
impl Unpin for FileValidationError
impl UnsafeUnpin for FileValidationError
impl UnwindSafe for FileValidationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more