pub struct BuildersSection {
pub enabled: bool,
pub threshold: usize,
}Expand description
Configuration for additive *_builder() operation entry points.
Fields§
§enabled: boolGenerate builders for operations above Self::threshold.
threshold: usizeMinimum optional-value count. Builders are emitted only when an operation has more optional values than this threshold.
Trait Implementations§
Source§impl Clone for BuildersSection
impl Clone for BuildersSection
Source§fn clone(&self) -> BuildersSection
fn clone(&self) -> BuildersSection
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 BuildersSection
impl Debug for BuildersSection
Source§impl Default for BuildersSection
impl Default for BuildersSection
Source§impl<'de> Deserialize<'de> for BuildersSectionwhere
BuildersSection: Default,
impl<'de> Deserialize<'de> for BuildersSectionwhere
BuildersSection: 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 BuildersSection
Source§impl PartialEq for BuildersSection
impl PartialEq for BuildersSection
Source§impl Serialize for BuildersSection
impl Serialize for BuildersSection
impl StructuralPartialEq for BuildersSection
Auto Trait Implementations§
impl Freeze for BuildersSection
impl RefUnwindSafe for BuildersSection
impl Send for BuildersSection
impl Sync for BuildersSection
impl Unpin for BuildersSection
impl UnsafeUnpin for BuildersSection
impl UnwindSafe for BuildersSection
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.