pub struct FeatureRecordBuilder { /* private fields */ }Expand description
Fluent builder for FeatureRecord.
Start with crate::FeatureRecordBuilderOps::new, chain the setter methods, then
call build to obtain a FeatureRecord.
Trait Implementations§
Source§impl FeatureRecordBuilderOps for FeatureRecordBuilder
impl FeatureRecordBuilderOps for FeatureRecordBuilder
Source§fn new(section_name: impl Into<String>) -> Self
fn new(section_name: impl Into<String>) -> Self
Create a new record builder for the named section.
Source§fn override_source(self, v: OverrideSource) -> Self
fn override_source(self, v: OverrideSource) -> Self
Record the source that overrode the feature state.
Source§fn requires(self, v: &'static [&'static str]) -> Self
fn requires(self, v: &'static [&'static str]) -> Self
Attach the required feature dependencies.
Source§fn metadata(self, v: FeatureMetadata) -> Self
fn metadata(self, v: FeatureMetadata) -> Self
Attach feature metadata to the record under construction.
Source§fn build(self) -> FeatureRecord
fn build(self) -> FeatureRecord
Finalise the builder and return the feature record.
Auto Trait Implementations§
impl Forget for FeatureRecordBuilder
impl Freeze for FeatureRecordBuilder
impl RefUnwindSafe for FeatureRecordBuilder
impl Send for FeatureRecordBuilder
impl Sync for FeatureRecordBuilder
impl Unpin for FeatureRecordBuilder
impl UnsafeUnpin for FeatureRecordBuilder
impl UnwindSafe for FeatureRecordBuilder
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