#[repr(i32)]pub enum RenameAll {
Unspecified = 0,
LowerCase = 1,
UpperCase = 2,
PascalCase = 3,
CamelCase = 4,
SnakeCase = 5,
ScreamingSnakeCase = 6,
KebabCase = 7,
ScreamingKebabCase = 8,
}
Expand description
Enum to define how to rename fields or enum variants.
Variants§
Unspecified = 0
protolint:disable ENUM_FIELD_NAMES_PREFIX
LowerCase = 1
Rename to lowercase.
UpperCase = 2
Rename to UPPERCASE.
PascalCase = 3
Rename to PascalCase.
CamelCase = 4
Rename to camelCase.
SnakeCase = 5
Rename to snake_case.
ScreamingSnakeCase = 6
Rename to SCREAMING_SNAKE_CASE.
KebabCase = 7
Rename to kebab-case.
ScreamingKebabCase = 8
Rename to SCREAMING-KEBAB-CASE.
Implementations§
Source§impl RenameAll
impl RenameAll
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for RenameAll
impl Ord for RenameAll
Source§impl PartialOrd for RenameAll
impl PartialOrd for RenameAll
impl Copy for RenameAll
impl Eq for RenameAll
impl StructuralPartialEq for RenameAll
Auto Trait Implementations§
impl Freeze for RenameAll
impl RefUnwindSafe for RenameAll
impl Send for RenameAll
impl Sync for RenameAll
impl Unpin for RenameAll
impl UnwindSafe for RenameAll
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