pub struct Builder<T>(/* private fields */);
Expand description
A builder for CustomOpts
Implementations§
Source§impl Builder<ExtractorStage>
impl Builder<ExtractorStage>
Sourcepub fn extractor(self, extractor: ResourceIdentifier) -> Builder<TargetStage>
pub fn extractor(self, extractor: ResourceIdentifier) -> Builder<TargetStage>
Sets the extractor
field.
Source§impl Builder<TargetStage>
impl Builder<TargetStage>
Sourcepub fn target(self, target: DatasetIngestTarget) -> Builder<Complete>
pub fn target(self, target: DatasetIngestTarget) -> Builder<Complete>
Sets the target
field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn insert_sources(
self,
key: ExtractorInputName,
value: IngestSource,
) -> Self
pub fn insert_sources( self, key: ExtractorInputName, value: IngestSource, ) -> Self
Adds an entry to the sources
field.
Sourcepub fn sources(
self,
sources: impl IntoIterator<Item = (ExtractorInputName, IngestSource)>,
) -> Self
pub fn sources( self, sources: impl IntoIterator<Item = (ExtractorInputName, IngestSource)>, ) -> Self
Sets the sources
field.
Sourcepub fn extend_sources(
self,
sources: impl IntoIterator<Item = (ExtractorInputName, IngestSource)>,
) -> Self
pub fn extend_sources( self, sources: impl IntoIterator<Item = (ExtractorInputName, IngestSource)>, ) -> Self
Adds entries to the sources
field.
Sourcepub fn extractor(self, extractor: ResourceIdentifier) -> Self
pub fn extractor(self, extractor: ResourceIdentifier) -> Self
Sets the extractor
field.
Sourcepub fn timestamp_metadata(
self,
timestamp_metadata: impl Into<Option<TimestampMetadata>>,
) -> Self
pub fn timestamp_metadata( self, timestamp_metadata: impl Into<Option<TimestampMetadata>>, ) -> Self
Sets the timestamp_metadata
field.
Sourcepub fn target(self, target: DatasetIngestTarget) -> Self
pub fn target(self, target: DatasetIngestTarget) -> Self
Sets the target
field.
Sourcepub fn build(self) -> CustomOpts
pub fn build(self) -> CustomOpts
Consumes the builder, returning a CustomOpts
.
Trait Implementations§
Source§impl Default for Builder<ExtractorStage>
impl Default for Builder<ExtractorStage>
Source§impl From<CustomOpts> for Builder<Complete>
impl From<CustomOpts> for Builder<Complete>
Source§fn from(v: CustomOpts) -> Self
fn from(v: CustomOpts) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: UnwindSafe,
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