pub struct RustGeneratorOption {
pub def_loc: Arc<DefLoc>,
pub file: Option<String>,
pub no_default_derive: Option<bool>,
pub default_derive: Option<Vec<String>>,
pub uses: Option<Vec<String>>,
pub no_error_type: Option<bool>,
pub error_type: Option<String>,
pub async_flag: Option<bool>,
pub async_trait: Option<bool>,
}
Fields§
§def_loc: Arc<DefLoc>
§file: Option<String>
Output .rs file
no_default_derive: Option<bool>
Do not place default derive for struct
default_derive: Option<Vec<String>>
Override the built-in default derive for struct
uses: Option<Vec<String>>
Custom extra uses
no_error_type: Option<bool>
§error_type: Option<String>
§async_flag: Option<bool>
§async_trait: Option<bool>
Trait Implementations§
Source§impl Debug for RustGeneratorOption
impl Debug for RustGeneratorOption
Source§impl<'de> Deserialize<'de> for RustGeneratorOption
impl<'de> Deserialize<'de> for RustGeneratorOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RustGeneratorOption
impl RefUnwindSafe for RustGeneratorOption
impl Send for RustGeneratorOption
impl Sync for RustGeneratorOption
impl Unpin for RustGeneratorOption
impl UnwindSafe for RustGeneratorOption
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