pub enum CasingStyle {
Camel,
Kebab,
Pascal,
ScreamingSnake,
Snake,
Lower,
Upper,
Verbatim,
}
Expand description
Defines the casing for the attributes long representation.
Variants§
Camel
Indicate word boundaries with uppercase letter, excluding the first word.
Kebab
Keep all letters lowercase and indicate word boundaries with hyphens.
Pascal
Indicate word boundaries with uppercase letter, including the first word.
ScreamingSnake
Keep all letters uppercase and indicate word boundaries with underscores.
Snake
Keep all letters lowercase and indicate word boundaries with underscores.
Lower
Keep all letters lowercase and remove word boundaries.
Upper
Keep all letters uppercase and remove word boundaries.
Verbatim
Use the original attribute name defined in the code.
Implementations§
Trait Implementations§
Source§impl Clone for CasingStyle
impl Clone for CasingStyle
Source§fn clone(&self) -> CasingStyle
fn clone(&self) -> CasingStyle
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 CasingStyle
impl Debug for CasingStyle
Source§impl PartialEq for CasingStyle
impl PartialEq for CasingStyle
impl Copy for CasingStyle
impl Eq for CasingStyle
impl StructuralPartialEq for CasingStyle
Auto Trait Implementations§
impl Freeze for CasingStyle
impl RefUnwindSafe for CasingStyle
impl Send for CasingStyle
impl Sync for CasingStyle
impl Unpin for CasingStyle
impl UnwindSafe for CasingStyle
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)