pub struct TwiMLValidator { /* private fields */ }Expand description
TwiML Validator
Implementations§
Source§impl TwiMLValidator
impl TwiMLValidator
Sourcepub fn set_strict(self, strict: bool) -> Self
pub fn set_strict(self, strict: bool) -> Self
Enable or disable strict validation
Sourcepub fn validate_xml(&self, xml: &str) -> Result<()>
pub fn validate_xml(&self, xml: &str) -> Result<()>
Validate XML well-formedness
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TwiMLValidator
impl RefUnwindSafe for TwiMLValidator
impl Send for TwiMLValidator
impl Sync for TwiMLValidator
impl Unpin for TwiMLValidator
impl UnwindSafe for TwiMLValidator
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