pub struct TargetConfig {Show 20 fields
pub target: String,
pub output: String,
pub enabled: Option<bool>,
pub backend: Option<String>,
pub features: Vec<String>,
pub package: Option<String>,
pub namespace: Option<String>,
pub strict_facets: Option<bool>,
pub slots: Option<bool>,
pub kw_only: Option<bool>,
pub zero_copy: Option<bool>,
pub codecs: Option<bool>,
pub standard: Option<String>,
pub derive_traits: Option<Vec<String>>,
pub box_cycles: Option<bool>,
pub modules: Option<bool>,
pub mode: Option<String>,
pub serializer: Option<String>,
pub style: Option<String>,
pub custom_header: Option<String>,
}Expand description
Target configuration from either [[generate]] or [codegen.<target>].
Unknown keys are rejected so removed legacy fields (zod, source_gen,
record_kind, builder, codec, rkyv) fail loudly instead of being
silently ignored.
Fields§
§target: String§output: String§enabled: Option<bool>§backend: Option<String>§features: Vec<String>§package: Option<String>§namespace: Option<String>§strict_facets: Option<bool>§slots: Option<bool>§kw_only: Option<bool>§zero_copy: Option<bool>§codecs: Option<bool>§standard: Option<String>§derive_traits: Option<Vec<String>>§box_cycles: Option<bool>§modules: Option<bool>§mode: Option<String>§serializer: Option<String>§style: Option<String>§custom_header: Option<String>Trait Implementations§
Source§impl Clone for TargetConfig
impl Clone for TargetConfig
Source§impl Debug for TargetConfig
impl Debug for TargetConfig
Source§impl<'de> Deserialize<'de> for TargetConfig
impl<'de> Deserialize<'de> for TargetConfig
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 TargetConfig
Source§impl PartialEq for TargetConfig
impl PartialEq for TargetConfig
Source§impl Serialize for TargetConfig
impl Serialize for TargetConfig
impl StructuralPartialEq for TargetConfig
Auto Trait Implementations§
impl Freeze for TargetConfig
impl RefUnwindSafe for TargetConfig
impl Send for TargetConfig
impl Sync for TargetConfig
impl Unpin for TargetConfig
impl UnsafeUnpin for TargetConfig
impl UnwindSafe for TargetConfig
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,
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.