pub struct IdentRenamer {
    pub rm_prefix: Option<String>,
    pub rm_suffix: Option<String>,
    pub renames: HashMap<String, String>,
    pub case: Option<Case>,
}Fields§
§rm_prefix: Option<String>The prefix to remove from the value. Applied before any explicit renames.
rm_suffix: Option<String>The suffix to remove from the value. Applied before any explicit renames.
renames: HashMap<String, String>Explicit renames for some values without prefix. If set, skips automatic case change.
case: Option<Case>Which case to convert the value to, unless explicitly renamed.
Implementations§
Source§impl IdentRenamer
 
impl IdentRenamer
pub fn default_case(case: Case) -> Self
Trait Implementations§
Source§impl Debug for IdentRenamer
 
impl Debug for IdentRenamer
Source§impl Default for IdentRenamer
 
impl Default for IdentRenamer
Source§fn default() -> IdentRenamer
 
fn default() -> IdentRenamer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IdentRenamer
impl RefUnwindSafe for IdentRenamer
impl Send for IdentRenamer
impl Sync for IdentRenamer
impl Unpin for IdentRenamer
impl UnwindSafe for IdentRenamer
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
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more