pub enum PdfUAError {
RequiresLicense,
InvalidLevel(String),
MissingStructure(String),
AccessibilityIssue {
category: String,
description: String,
},
MetadataFailed(String),
Operation(String),
}Expand description
PDF/UA accessibility errors.
Variants§
RequiresLicense
Feature requires a commercial license.
InvalidLevel(String)
Invalid PDF/UA level.
MissingStructure(String)
Document missing required structure.
AccessibilityIssue
Accessibility issue detected.
Fields
MetadataFailed(String)
Failed to add metadata.
Operation(String)
Generic PDF/UA operation error.
Trait Implementations§
Source§impl Debug for PdfUAError
impl Debug for PdfUAError
Source§impl Display for PdfUAError
impl Display for PdfUAError
Source§impl Error for PdfUAError
impl Error for PdfUAError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<PdfUAError> for Error
impl From<PdfUAError> for Error
Source§fn from(source: PdfUAError) -> Self
fn from(source: PdfUAError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PdfUAError
impl RefUnwindSafe for PdfUAError
impl Send for PdfUAError
impl Sync for PdfUAError
impl Unpin for PdfUAError
impl UnwindSafe for PdfUAError
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