pub struct ExactReplacement {
pub type: Type,
pub key: String,
pub value: String,
}Fields§
§type: TypeThis is the exact replacement type. You can use this to replace a specific word or phrase with a different word or phrase. Usage: - Replace "hello" with "hi": { type: ‘exact’, key: ‘hello’, value: ‘hi’ } - Replace "good morning" with "good day": { type: ‘exact’, key: ‘good morning’, value: ‘good day’ } - Replace a specific name: { type: ‘exact’, key: ‘John Doe’, value: ‘Jane Smith’ } - Replace an acronym: { type: ‘exact’, key: ‘AI’, value: ‘Artificial Intelligence’ } - Replace a company name with its phonetic pronunciation: { type: ‘exact’, key: ‘Vapi’, value: ‘Vappy’ }
key: StringThis is the key to replace.
value: StringThis is the value that will replace the match.
Implementations§
Trait Implementations§
Source§impl Clone for ExactReplacement
impl Clone for ExactReplacement
Source§fn clone(&self) -> ExactReplacement
fn clone(&self) -> ExactReplacement
Returns a copy 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 ExactReplacement
impl Debug for ExactReplacement
Source§impl Default for ExactReplacement
impl Default for ExactReplacement
Source§fn default() -> ExactReplacement
fn default() -> ExactReplacement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExactReplacement
impl<'de> Deserialize<'de> for ExactReplacement
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 ExactReplacement
impl PartialEq for ExactReplacement
Source§impl Serialize for ExactReplacement
impl Serialize for ExactReplacement
impl StructuralPartialEq for ExactReplacement
Auto Trait Implementations§
impl Freeze for ExactReplacement
impl RefUnwindSafe for ExactReplacement
impl Send for ExactReplacement
impl Sync for ExactReplacement
impl Unpin for ExactReplacement
impl UnwindSafe for ExactReplacement
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