pub trait PdfSchema: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn version(&self) -> &str;
fn validate(&self, document: &PdfDocument) -> ValidationReport;
fn get_constraints(&self) -> Vec<Box<dyn SchemaConstraint>>;
fn supports_pdf_version(&self, version: &PdfVersion) -> bool;
// Provided methods
fn description(&self) -> &str { ... }
fn reference_url(&self) -> Option<&str> { ... }
}Expand description
Base trait for PDF schema validation
Required Methods§
Sourcefn validate(&self, document: &PdfDocument) -> ValidationReport
fn validate(&self, document: &PdfDocument) -> ValidationReport
Validate a complete document
Sourcefn get_constraints(&self) -> Vec<Box<dyn SchemaConstraint>>
fn get_constraints(&self) -> Vec<Box<dyn SchemaConstraint>>
Get all constraints for this schema
Sourcefn supports_pdf_version(&self, version: &PdfVersion) -> bool
fn supports_pdf_version(&self, version: &PdfVersion) -> bool
Check if schema supports specific PDF version
Provided Methods§
Sourcefn description(&self) -> &str
fn description(&self) -> &str
Get schema description
Sourcefn reference_url(&self) -> Option<&str>
fn reference_url(&self) -> Option<&str>
Get schema URL/reference