#[non_exhaustive]pub enum RepairRefusal {
ParseFailed {
reason: BoundedText,
},
Encrypted,
AmbiguousFlavour {
selected: u64,
},
UnsupportedValidationStatus {
status: ValidationStatus,
},
OutputWouldModifyInput,
InvalidOutputPath {
reason: BoundedText,
},
}Expand description
Explicit reason metadata repair was refused.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ParseFailed
Input could not be parsed as PDF.
Fields
§
reason: BoundedTextBounded reason.
Encrypted
Encrypted inputs are not repaired by this phase.
AmbiguousFlavour
Repair requires exactly one selected validation flavour.
UnsupportedValidationStatus
Validation failed and safe metadata rewrite support is unavailable.
Fields
§
status: ValidationStatusValidation status that blocked repair.
OutputWouldModifyInput
Output path would overwrite the input.
InvalidOutputPath
Output path failed validation.
Fields
§
reason: BoundedTextBounded reason.
Trait Implementations§
Source§impl Clone for RepairRefusal
impl Clone for RepairRefusal
Source§fn clone(&self) -> RepairRefusal
fn clone(&self) -> RepairRefusal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RepairRefusal
impl Debug for RepairRefusal
Source§impl<'de> Deserialize<'de> for RepairRefusal
impl<'de> Deserialize<'de> for RepairRefusal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RepairRefusal
impl PartialEq for RepairRefusal
Source§fn eq(&self, other: &RepairRefusal) -> bool
fn eq(&self, other: &RepairRefusal) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RepairRefusal
impl Serialize for RepairRefusal
impl Eq for RepairRefusal
impl StructuralPartialEq for RepairRefusal
Auto Trait Implementations§
impl Freeze for RepairRefusal
impl RefUnwindSafe for RepairRefusal
impl Send for RepairRefusal
impl Sync for RepairRefusal
impl Unpin for RepairRefusal
impl UnsafeUnpin for RepairRefusal
impl UnwindSafe for RepairRefusal
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