pub struct MethodDef {
pub name: String,
pub input_type: String,
pub output_type: String,
pub comment: Option<String>,
}Expand description
Method definition
Fields§
§name: String§input_type: String§output_type: String§comment: Option<String>Implementations§
Source§impl MethodDef
impl MethodDef
Sourcepub fn method_name_snake(&self) -> String
pub fn method_name_snake(&self) -> String
Get snake_case method name for Rust
Sourcepub fn method_id_expr(&self) -> TokenStream
pub fn method_id_expr(&self) -> TokenStream
Get method ID calculation
Sourcepub fn input_type_path(&self, package: &str) -> TokenStream
pub fn input_type_path(&self, package: &str) -> TokenStream
Parse input type to Rust path
Sourcepub fn output_type_path(&self, package: &str) -> TokenStream
pub fn output_type_path(&self, package: &str) -> TokenStream
Parse output type to Rust path
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MethodDef
impl RefUnwindSafe for MethodDef
impl Send for MethodDef
impl Sync for MethodDef
impl Unpin for MethodDef
impl UnsafeUnpin for MethodDef
impl UnwindSafe for MethodDef
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