#[repr(i32)]pub enum EnumValueNaming {
AsInProto,
CamelCase,
}
Expand description
Naming convention for generated enum values
Variants§
AsInProto
Enum value names in Scala use the same name as in the proto
CamelCase
Convert enum values to CamelCase in Scala.
Implementations§
Trait Implementations§
source§impl Clone for EnumValueNaming
impl Clone for EnumValueNaming
source§fn clone(&self) -> EnumValueNaming
fn clone(&self) -> EnumValueNaming
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 EnumValueNaming
impl Debug for EnumValueNaming
source§impl Default for EnumValueNaming
impl Default for EnumValueNaming
source§fn default() -> EnumValueNaming
fn default() -> EnumValueNaming
Returns the “default value” for a type. Read more
source§impl From<EnumValueNaming> for i32
impl From<EnumValueNaming> for i32
source§fn from(value: EnumValueNaming) -> i32
fn from(value: EnumValueNaming) -> i32
Converts to this type from the input type.
source§impl Hash for EnumValueNaming
impl Hash for EnumValueNaming
source§impl Ord for EnumValueNaming
impl Ord for EnumValueNaming
source§fn cmp(&self, other: &EnumValueNaming) -> Ordering
fn cmp(&self, other: &EnumValueNaming) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<EnumValueNaming> for EnumValueNaming
impl PartialEq<EnumValueNaming> for EnumValueNaming
source§fn eq(&self, other: &EnumValueNaming) -> bool
fn eq(&self, other: &EnumValueNaming) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<EnumValueNaming> for EnumValueNaming
impl PartialOrd<EnumValueNaming> for EnumValueNaming
source§fn partial_cmp(&self, other: &EnumValueNaming) -> Option<Ordering>
fn partial_cmp(&self, other: &EnumValueNaming) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for EnumValueNaming
impl Eq for EnumValueNaming
impl StructuralEq for EnumValueNaming
impl StructuralPartialEq for EnumValueNaming
Auto Trait Implementations§
impl RefUnwindSafe for EnumValueNaming
impl Send for EnumValueNaming
impl Sync for EnumValueNaming
impl Unpin for EnumValueNaming
impl UnwindSafe for EnumValueNaming
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request