pub struct TypeConstraintsConfig {
pub mode: Option<ConstraintMode>,
}Fields§
§mode: Option<ConstraintMode>Q2.4 constraint annotation mode. Defaults to Doc when the
[generator.types.constraints] block is absent (see
TypeMapper::config_constraint_mode).
Trait Implementations§
Source§impl Clone for TypeConstraintsConfig
impl Clone for TypeConstraintsConfig
Source§fn clone(&self) -> TypeConstraintsConfig
fn clone(&self) -> TypeConstraintsConfig
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 TypeConstraintsConfig
impl Debug for TypeConstraintsConfig
Source§impl Default for TypeConstraintsConfig
impl Default for TypeConstraintsConfig
Source§fn default() -> TypeConstraintsConfig
fn default() -> TypeConstraintsConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TypeConstraintsConfigwhere
TypeConstraintsConfig: Default,
impl<'de> Deserialize<'de> for TypeConstraintsConfigwhere
TypeConstraintsConfig: 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
Auto Trait Implementations§
impl Freeze for TypeConstraintsConfig
impl RefUnwindSafe for TypeConstraintsConfig
impl Send for TypeConstraintsConfig
impl Sync for TypeConstraintsConfig
impl Unpin for TypeConstraintsConfig
impl UnsafeUnpin for TypeConstraintsConfig
impl UnwindSafe for TypeConstraintsConfig
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