pub struct TargetConfig {Show 21 fields
pub target: String,
pub output: String,
pub enabled: Option<bool>,
pub backend: Option<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 zod: Option<bool>,
pub source_gen: Option<bool>,
pub record_kind: Option<String>,
pub rkyv: Option<bool>,
}Expand description
Target configuration from either [[generate]] or [codegen.<target>].
Fields§
§target: String§output: String§enabled: Option<bool>§backend: Option<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>§zod: Option<bool>§source_gen: Option<bool>§record_kind: Option<String>§rkyv: Option<bool>Trait Implementations§
Source§impl Clone for TargetConfig
impl Clone for TargetConfig
Source§fn clone(&self) -> TargetConfig
fn clone(&self) -> TargetConfig
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 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.