Skip to main content

ToRust

Trait ToRust 

Source
pub trait ToRust {
    // Required methods
    fn to_rust_ref(&self, serde_with: bool) -> String;
    fn to_rust_decl(&self, serde_with: bool, add_derives: bool) -> String;
    fn add_derives(&self, input: String) -> String;
}

Required Methods§

Source

fn to_rust_ref(&self, serde_with: bool) -> String

Source

fn to_rust_decl(&self, serde_with: bool, add_derives: bool) -> String

Source

fn add_derives(&self, input: String) -> String

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToRust for Type

Source§

fn to_rust_ref(&self, serde_with: bool) -> String

Source§

fn to_rust_decl(&self, serde_with: bool, add_derives: bool) -> String

Source§

fn add_derives(&self, input: String) -> String

Implementors§