pub struct DerivesConfig {
pub string_enums: Vec<String>,
pub types: BTreeMap<String, Vec<String>>,
}Expand description
Additive derives, configured by [generator.derives].
Empty defaults preserve existing output. Derives are macro paths, such as
Ord or my_crate::MyDerive; consumers provide custom macro dependencies.
Required trait implementations on fields and referenced models are the
consumer’s responsibility, and are checked by Rust rather than inferred.
Fields§
§string_enums: Vec<String>Applies to closed/extensible string enums, including hoisted inline enums and HTTP parameter enums. Payload unions are not string enums.
types: BTreeMap<String, Vec<String>>Additional derives keyed by the exact emitted Rust type name. Valid types omitted by operation selection or pruning are ignored. Unknown/ambiguous names and type aliases are rejected.
Trait Implementations§
Source§impl Clone for DerivesConfig
impl Clone for DerivesConfig
Source§impl Debug for DerivesConfig
impl Debug for DerivesConfig
Source§impl Default for DerivesConfig
impl Default for DerivesConfig
Source§impl<'de> Deserialize<'de> for DerivesConfigwhere
DerivesConfig: Default,
impl<'de> Deserialize<'de> for DerivesConfigwhere
DerivesConfig: Default,
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
impl Eq for DerivesConfig
Source§impl PartialEq for DerivesConfig
impl PartialEq for DerivesConfig
Source§impl Serialize for DerivesConfig
impl Serialize for DerivesConfig
impl StructuralPartialEq for DerivesConfig
Auto Trait Implementations§
impl Freeze for DerivesConfig
impl RefUnwindSafe for DerivesConfig
impl Send for DerivesConfig
impl Sync for DerivesConfig
impl Unpin for DerivesConfig
impl UnsafeUnpin for DerivesConfig
impl UnwindSafe for DerivesConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.