pub struct RegexSubstitution {
pub pattern: RegexString,
pub replacement: String,
}Expand description
A regex-based substitution with a pattern and replacement string.
Fields§
§pattern: RegexStringThe pattern to be matched.
replacement: StringThe string to replace occurrences [pattern] with.
Trait Implementations§
Source§impl CandidType for RegexSubstitution
impl CandidType for RegexSubstitution
Source§impl Clone for RegexSubstitution
impl Clone for RegexSubstitution
Source§fn clone(&self) -> RegexSubstitution
fn clone(&self) -> RegexSubstitution
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 RegexSubstitution
impl Debug for RegexSubstitution
Source§impl<'de> Deserialize<'de> for RegexSubstitution
impl<'de> Deserialize<'de> for RegexSubstitution
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
Source§impl PartialEq for RegexSubstitution
impl PartialEq for RegexSubstitution
Source§impl Serialize for RegexSubstitution
impl Serialize for RegexSubstitution
impl Eq for RegexSubstitution
impl StructuralPartialEq for RegexSubstitution
Auto Trait Implementations§
impl Freeze for RegexSubstitution
impl RefUnwindSafe for RegexSubstitution
impl Send for RegexSubstitution
impl Sync for RegexSubstitution
impl Unpin for RegexSubstitution
impl UnwindSafe for RegexSubstitution
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