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

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§