pub enum CallbackAction {
Skip,
Continue,
PreserveHtml,
Custom {
output: String,
},
CustomTemplate {
template: String,
},
}Expand description
Action a visitor callback should take.
Variants§
Skip
Return VisitResult::Skip.
Continue
Return VisitResult::Continue.
PreserveHtml
Return VisitResult::PreserveHtml.
Custom
Return VisitResult::Custom with static output.
CustomTemplate
Return VisitResult::Custom with template interpolation.
Trait Implementations§
Source§impl Clone for CallbackAction
impl Clone for CallbackAction
Source§fn clone(&self) -> CallbackAction
fn clone(&self) -> CallbackAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CallbackAction
impl Debug for CallbackAction
Source§impl<'de> Deserialize<'de> for CallbackAction
impl<'de> Deserialize<'de> for CallbackAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CallbackAction
impl RefUnwindSafe for CallbackAction
impl Send for CallbackAction
impl Sync for CallbackAction
impl Unpin for CallbackAction
impl UnsafeUnpin for CallbackAction
impl UnwindSafe for CallbackAction
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