#[non_exhaustive]pub struct CrawlerTargetsBuilder { /* private fields */ }Expand description
A builder for CrawlerTargets.
Implementations§
Source§impl CrawlerTargetsBuilder
impl CrawlerTargetsBuilder
Sourcepub fn s3_targets(self, input: S3Target) -> Self
pub fn s3_targets(self, input: S3Target) -> Self
Appends an item to s3_targets.
To override the contents of this collection use set_s3_targets.
Specifies Amazon Simple Storage Service (Amazon S3) targets.
Sourcepub fn set_s3_targets(self, input: Option<Vec<S3Target>>) -> Self
pub fn set_s3_targets(self, input: Option<Vec<S3Target>>) -> Self
Specifies Amazon Simple Storage Service (Amazon S3) targets.
Sourcepub fn get_s3_targets(&self) -> &Option<Vec<S3Target>>
pub fn get_s3_targets(&self) -> &Option<Vec<S3Target>>
Specifies Amazon Simple Storage Service (Amazon S3) targets.
Sourcepub fn jdbc_targets(self, input: JdbcTarget) -> Self
pub fn jdbc_targets(self, input: JdbcTarget) -> Self
Appends an item to jdbc_targets.
To override the contents of this collection use set_jdbc_targets.
Specifies JDBC targets.
Sourcepub fn set_jdbc_targets(self, input: Option<Vec<JdbcTarget>>) -> Self
pub fn set_jdbc_targets(self, input: Option<Vec<JdbcTarget>>) -> Self
Specifies JDBC targets.
Sourcepub fn get_jdbc_targets(&self) -> &Option<Vec<JdbcTarget>>
pub fn get_jdbc_targets(&self) -> &Option<Vec<JdbcTarget>>
Specifies JDBC targets.
Sourcepub fn mongo_db_targets(self, input: MongoDbTarget) -> Self
pub fn mongo_db_targets(self, input: MongoDbTarget) -> Self
Appends an item to mongo_db_targets.
To override the contents of this collection use set_mongo_db_targets.
Specifies Amazon DocumentDB or MongoDB targets.
Sourcepub fn set_mongo_db_targets(self, input: Option<Vec<MongoDbTarget>>) -> Self
pub fn set_mongo_db_targets(self, input: Option<Vec<MongoDbTarget>>) -> Self
Specifies Amazon DocumentDB or MongoDB targets.
Sourcepub fn get_mongo_db_targets(&self) -> &Option<Vec<MongoDbTarget>>
pub fn get_mongo_db_targets(&self) -> &Option<Vec<MongoDbTarget>>
Specifies Amazon DocumentDB or MongoDB targets.
Sourcepub fn dynamo_db_targets(self, input: DynamoDbTarget) -> Self
pub fn dynamo_db_targets(self, input: DynamoDbTarget) -> Self
Appends an item to dynamo_db_targets.
To override the contents of this collection use set_dynamo_db_targets.
Specifies Amazon DynamoDB targets.
Sourcepub fn set_dynamo_db_targets(self, input: Option<Vec<DynamoDbTarget>>) -> Self
pub fn set_dynamo_db_targets(self, input: Option<Vec<DynamoDbTarget>>) -> Self
Specifies Amazon DynamoDB targets.
Sourcepub fn get_dynamo_db_targets(&self) -> &Option<Vec<DynamoDbTarget>>
pub fn get_dynamo_db_targets(&self) -> &Option<Vec<DynamoDbTarget>>
Specifies Amazon DynamoDB targets.
Sourcepub fn catalog_targets(self, input: CatalogTarget) -> Self
pub fn catalog_targets(self, input: CatalogTarget) -> Self
Appends an item to catalog_targets.
To override the contents of this collection use set_catalog_targets.
Specifies Glue Data Catalog targets.
Sourcepub fn set_catalog_targets(self, input: Option<Vec<CatalogTarget>>) -> Self
pub fn set_catalog_targets(self, input: Option<Vec<CatalogTarget>>) -> Self
Specifies Glue Data Catalog targets.
Sourcepub fn get_catalog_targets(&self) -> &Option<Vec<CatalogTarget>>
pub fn get_catalog_targets(&self) -> &Option<Vec<CatalogTarget>>
Specifies Glue Data Catalog targets.
Sourcepub fn delta_targets(self, input: DeltaTarget) -> Self
pub fn delta_targets(self, input: DeltaTarget) -> Self
Appends an item to delta_targets.
To override the contents of this collection use set_delta_targets.
Specifies Delta data store targets.
Sourcepub fn set_delta_targets(self, input: Option<Vec<DeltaTarget>>) -> Self
pub fn set_delta_targets(self, input: Option<Vec<DeltaTarget>>) -> Self
Specifies Delta data store targets.
Sourcepub fn get_delta_targets(&self) -> &Option<Vec<DeltaTarget>>
pub fn get_delta_targets(&self) -> &Option<Vec<DeltaTarget>>
Specifies Delta data store targets.
Sourcepub fn iceberg_targets(self, input: IcebergTarget) -> Self
pub fn iceberg_targets(self, input: IcebergTarget) -> Self
Appends an item to iceberg_targets.
To override the contents of this collection use set_iceberg_targets.
Specifies Apache Iceberg data store targets.
Sourcepub fn set_iceberg_targets(self, input: Option<Vec<IcebergTarget>>) -> Self
pub fn set_iceberg_targets(self, input: Option<Vec<IcebergTarget>>) -> Self
Specifies Apache Iceberg data store targets.
Sourcepub fn get_iceberg_targets(&self) -> &Option<Vec<IcebergTarget>>
pub fn get_iceberg_targets(&self) -> &Option<Vec<IcebergTarget>>
Specifies Apache Iceberg data store targets.
Sourcepub fn hudi_targets(self, input: HudiTarget) -> Self
pub fn hudi_targets(self, input: HudiTarget) -> Self
Appends an item to hudi_targets.
To override the contents of this collection use set_hudi_targets.
Specifies Apache Hudi data store targets.
Sourcepub fn set_hudi_targets(self, input: Option<Vec<HudiTarget>>) -> Self
pub fn set_hudi_targets(self, input: Option<Vec<HudiTarget>>) -> Self
Specifies Apache Hudi data store targets.
Sourcepub fn get_hudi_targets(&self) -> &Option<Vec<HudiTarget>>
pub fn get_hudi_targets(&self) -> &Option<Vec<HudiTarget>>
Specifies Apache Hudi data store targets.
Sourcepub fn build(self) -> CrawlerTargets
pub fn build(self) -> CrawlerTargets
Consumes the builder and constructs a CrawlerTargets.
Trait Implementations§
Source§impl Clone for CrawlerTargetsBuilder
impl Clone for CrawlerTargetsBuilder
Source§fn clone(&self) -> CrawlerTargetsBuilder
fn clone(&self) -> CrawlerTargetsBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CrawlerTargetsBuilder
impl Debug for CrawlerTargetsBuilder
Source§impl Default for CrawlerTargetsBuilder
impl Default for CrawlerTargetsBuilder
Source§fn default() -> CrawlerTargetsBuilder
fn default() -> CrawlerTargetsBuilder
Source§impl PartialEq for CrawlerTargetsBuilder
impl PartialEq for CrawlerTargetsBuilder
impl StructuralPartialEq for CrawlerTargetsBuilder
Auto Trait Implementations§
impl Freeze for CrawlerTargetsBuilder
impl RefUnwindSafe for CrawlerTargetsBuilder
impl Send for CrawlerTargetsBuilder
impl Sync for CrawlerTargetsBuilder
impl Unpin for CrawlerTargetsBuilder
impl UnwindSafe for CrawlerTargetsBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);