pub struct CodegenRust {
pub no_derive_default: bool,
pub no_derive_eq: bool,
pub non_exhaustive: bool,
pub skip: bool,
}Expand description
Rust codegen traits
Fields§
§no_derive_default: boolif true, disables deriving ‘Default’ trait
no_derive_eq: boolif true, disables deriving ‘Eq’ trait
non_exhaustive: booladds [#non_exhaustive] attribute to a struct declaration
skip: boolif true, do not generate code for this item. This trait can be used if an item needs to be hand-generated
Trait Implementations§
Source§impl Clone for CodegenRust
impl Clone for CodegenRust
Source§fn clone(&self) -> CodegenRust
fn clone(&self) -> CodegenRust
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodegenRust
impl Debug for CodegenRust
Source§impl<'de> Deserialize<'de> for CodegenRust
impl<'de> Deserialize<'de> for CodegenRust
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
Source§impl PartialEq for CodegenRust
impl PartialEq for CodegenRust
Source§impl Serialize for CodegenRust
impl Serialize for CodegenRust
impl Eq for CodegenRust
impl StructuralPartialEq for CodegenRust
Auto Trait Implementations§
impl Freeze for CodegenRust
impl RefUnwindSafe for CodegenRust
impl Send for CodegenRust
impl Sync for CodegenRust
impl Unpin for CodegenRust
impl UnwindSafe for CodegenRust
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.