pub struct ExtraDerivesConfig {
pub structs: Option<ExtraDeriveConfig>,
pub enums: Option<ExtraDeriveConfig>,
pub unions: Option<ExtraDeriveConfig>,
pub response_structs: Option<ExtraDeriveConfig>,
pub per_type: Option<BTreeMap<String, ExtraDeriveConfig>>,
}Expand description
Per-type-kind extra derive configuration.
Fields§
§structs: Option<ExtraDeriveConfig>§enums: Option<ExtraDeriveConfig>§unions: Option<ExtraDeriveConfig>§response_structs: Option<ExtraDeriveConfig>§per_type: Option<BTreeMap<String, ExtraDeriveConfig>>Implementations§
Source§impl ExtraDerivesConfig
impl ExtraDerivesConfig
Sourcepub fn all_dependencies(&self) -> BTreeMap<String, String>
pub fn all_dependencies(&self) -> BTreeMap<String, String>
Collect all unique crate dependencies across every type-kind.
Sourcepub fn warn_missing_dependencies(&self)
pub fn warn_missing_dependencies(&self)
Warn about derives that reference external crates without a matching
entry in dependencies. Call this during codegen so users get feedback.
Trait Implementations§
Source§impl Clone for ExtraDerivesConfig
impl Clone for ExtraDerivesConfig
Source§fn clone(&self) -> ExtraDerivesConfig
fn clone(&self) -> ExtraDerivesConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExtraDerivesConfig
impl Debug for ExtraDerivesConfig
Source§impl Default for ExtraDerivesConfig
impl Default for ExtraDerivesConfig
Source§fn default() -> ExtraDerivesConfig
fn default() -> ExtraDerivesConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExtraDerivesConfig
impl<'de> Deserialize<'de> for ExtraDerivesConfig
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 ExtraDerivesConfig
impl RefUnwindSafe for ExtraDerivesConfig
impl Send for ExtraDerivesConfig
impl Sync for ExtraDerivesConfig
impl Unpin for ExtraDerivesConfig
impl UnsafeUnpin for ExtraDerivesConfig
impl UnwindSafe for ExtraDerivesConfig
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