pub struct NamingConfig {
pub strategy: NamingStrategy,
pub aliases: IndexMap<String, String>,
}Expand description
Naming strategy and aliases.
Fields§
§strategy: NamingStrategy§aliases: IndexMap<String, String>Map from resolved operation name (operationId or route-derived) to custom alias.
Trait Implementations§
Source§impl Clone for NamingConfig
impl Clone for NamingConfig
Source§fn clone(&self) -> NamingConfig
fn clone(&self) -> NamingConfig
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 NamingConfig
impl Debug for NamingConfig
Source§impl Default for NamingConfig
impl Default for NamingConfig
Source§impl<'de> Deserialize<'de> for NamingConfigwhere
NamingConfig: Default,
impl<'de> Deserialize<'de> for NamingConfigwhere
NamingConfig: 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 NamingConfig
impl RefUnwindSafe for NamingConfig
impl Send for NamingConfig
impl Sync for NamingConfig
impl Unpin for NamingConfig
impl UnwindSafe for NamingConfig
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