pub enum TwiMLWarning {
UnreachableRedirectAfterMessageWithAction {
message_index: usize,
redirect_index: usize,
},
EmptyRedirectUrl {
redirect_index: usize,
},
UnreachableVerbsAfterRedirect {
redirect_index: usize,
unreachable_count: usize,
},
}Expand description
Warning types for TwiML best practices
Variants§
UnreachableRedirectAfterMessageWithAction
A Redirect verb appears after a Message with an action attribute The Redirect will be unreachable because control flow will transfer to the action URL
EmptyRedirectUrl
An empty Redirect URL will create an infinite loop
UnreachableVerbsAfterRedirect
Multiple verbs after a Redirect (they will never be reached)
Trait Implementations§
Source§impl Clone for TwiMLWarning
impl Clone for TwiMLWarning
Source§fn clone(&self) -> TwiMLWarning
fn clone(&self) -> TwiMLWarning
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TwiMLWarning
impl Debug for TwiMLWarning
Source§impl Display for TwiMLWarning
impl Display for TwiMLWarning
Source§impl PartialEq for TwiMLWarning
impl PartialEq for TwiMLWarning
impl StructuralPartialEq for TwiMLWarning
Auto Trait Implementations§
impl Freeze for TwiMLWarning
impl RefUnwindSafe for TwiMLWarning
impl Send for TwiMLWarning
impl Sync for TwiMLWarning
impl Unpin for TwiMLWarning
impl UnwindSafe for TwiMLWarning
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