pub enum MethodCase {
Camel,
Snake,
}Expand description
How a generated client casts its TypeScript method names. The wire command name and argument keys are always the Rust identifiers verbatim (wire parity); argument names in the TypeScript signature are always camelCase. Only the method name varies.
Variants§
Camel
save_scene -> saveScene. Idiomatic TypeScript, and the
default – matching the object and event naming.
Snake
save_scene -> save_scene: the Rust identifier verbatim. The
taurpc drop-in – taurpc names its proxy methods this way
(snake_case method, camelCase arguments), so a frontend
migrating off it keeps its call sites.
Trait Implementations§
Source§impl Clone for MethodCase
impl Clone for MethodCase
Source§fn clone(&self) -> MethodCase
fn clone(&self) -> MethodCase
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 moreimpl Copy for MethodCase
Source§impl Debug for MethodCase
impl Debug for MethodCase
Source§impl Default for MethodCase
impl Default for MethodCase
Source§fn default() -> MethodCase
fn default() -> MethodCase
Returns the “default value” for a type. Read more
impl Eq for MethodCase
Source§impl PartialEq for MethodCase
impl PartialEq for MethodCase
impl StructuralPartialEq for MethodCase
Auto Trait Implementations§
impl Freeze for MethodCase
impl RefUnwindSafe for MethodCase
impl Send for MethodCase
impl Sync for MethodCase
impl Unpin for MethodCase
impl UnsafeUnpin for MethodCase
impl UnwindSafe for MethodCase
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.