pub struct InflectionConfig {
pub plurals: Vec<Rule>,
pub singulars: Vec<Rule>,
pub irregulars: Vec<Irregular>,
pub uncountables: Vec<String>,
pub acronyms: Vec<String>,
}Expand description
Deserialized form of config/inflection.yaml. Unknown keys are rejected so
typos surface instead of being silently ignored.
Fields§
§plurals: Vec<Rule>§singulars: Vec<Rule>§irregulars: Vec<Irregular>§uncountables: Vec<String>§acronyms: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for InflectionConfig
impl Clone for InflectionConfig
Source§fn clone(&self) -> InflectionConfig
fn clone(&self) -> InflectionConfig
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 InflectionConfig
impl Debug for InflectionConfig
Source§impl Default for InflectionConfig
impl Default for InflectionConfig
Source§fn default() -> InflectionConfig
fn default() -> InflectionConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InflectionConfigwhere
InflectionConfig: Default,
impl<'de> Deserialize<'de> for InflectionConfigwhere
InflectionConfig: Default,
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 InflectionConfig
impl RefUnwindSafe for InflectionConfig
impl Send for InflectionConfig
impl Sync for InflectionConfig
impl Unpin for InflectionConfig
impl UnsafeUnpin for InflectionConfig
impl UnwindSafe for InflectionConfig
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