TwiML

Trait TwiML 

Source
pub trait TwiML {
    // Required method
    fn to_xml(&self) -> String;

    // Provided methods
    fn validate(&self) -> Result<Vec<ValidationError>> { ... }
    fn validate_strict(&self) -> Result<Vec<ValidationError>> { ... }
}
Expand description

Common trait for TwiML responses

Required Methods§

Source

fn to_xml(&self) -> String

Convert the TwiML to an XML string

Provided Methods§

Source

fn validate(&self) -> Result<Vec<ValidationError>>

Validate the TwiML

Source

fn validate_strict(&self) -> Result<Vec<ValidationError>>

Validate the TwiML with strict validation

Implementors§