pub struct CmlValidator { /* private fields */ }Expand description
Validates a CML v0.2 document
Implementations§
Source§impl CmlValidator
impl CmlValidator
Sourcepub fn with_constraints(constraints: ResolvedConstraints) -> Self
pub fn with_constraints(constraints: ResolvedConstraints) -> Self
Create a validator with constraints for a specific profile
Sourcepub fn validate(document: &CmlDocument) -> Result<()>
pub fn validate(document: &CmlDocument) -> Result<()>
Validate a complete CML document (basic validation without profile constraints)
Sourcepub fn validate_with_profile(document: &CmlDocument) -> Result<()>
pub fn validate_with_profile(document: &CmlDocument) -> Result<()>
Validate a document with profile-specific constraints
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CmlValidator
impl RefUnwindSafe for CmlValidator
impl Send for CmlValidator
impl Sync for CmlValidator
impl Unpin for CmlValidator
impl UnwindSafe for CmlValidator
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