pub struct HookResult {
pub result: String,
pub original: String,
pub replacements: usize,
pub changed: bool,
pub error: Option<String>,
}Expand description
Result of a replacement operation.
Fields§
§result: StringThe resulting text after replacement.
original: StringThe original input text.
replacements: usizeNumber of replacements made.
changed: boolWhether any changes were made.
error: Option<String>Error message if replacement failed (only set in fail-open mode).
Implementations§
Source§impl HookResult
impl HookResult
Trait Implementations§
Source§impl Clone for HookResult
impl Clone for HookResult
Source§fn clone(&self) -> HookResult
fn clone(&self) -> HookResult
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 HookResult
impl Debug for HookResult
Source§impl<'de> Deserialize<'de> for HookResult
impl<'de> Deserialize<'de> for HookResult
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 HookResult
impl RefUnwindSafe for HookResult
impl Send for HookResult
impl Sync for HookResult
impl Unpin for HookResult
impl UnwindSafe for HookResult
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