#[non_exhaustive]pub struct Crawler {Show 20 fields
pub name: Option<String>,
pub role: Option<String>,
pub targets: Option<CrawlerTargets>,
pub database_name: Option<String>,
pub description: Option<String>,
pub classifiers: Option<Vec<String>>,
pub recrawl_policy: Option<RecrawlPolicy>,
pub schema_change_policy: Option<SchemaChangePolicy>,
pub lineage_configuration: Option<LineageConfiguration>,
pub state: Option<CrawlerState>,
pub table_prefix: Option<String>,
pub schedule: Option<Schedule>,
pub crawl_elapsed_time: i64,
pub creation_time: Option<DateTime>,
pub last_updated: Option<DateTime>,
pub last_crawl: Option<LastCrawlInfo>,
pub version: i64,
pub configuration: Option<String>,
pub crawler_security_configuration: Option<String>,
pub lake_formation_configuration: Option<LakeFormationConfiguration>,
}
Expand description
Specifies a crawler program that examines a data source and uses classifiers to try to determine its schema. If successful, the crawler records metadata concerning the data source in the Glue Data Catalog.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
The name of the crawler.
role: Option<String>
The Amazon Resource Name (ARN) of an IAM role that's used to access customer resources, such as Amazon Simple Storage Service (Amazon S3) data.
targets: Option<CrawlerTargets>
A collection of targets to crawl.
database_name: Option<String>
The name of the database in which the crawler's output is stored.
description: Option<String>
A description of the crawler.
classifiers: Option<Vec<String>>
A list of UTF-8 strings that specify the custom classifiers that are associated with the crawler.
recrawl_policy: Option<RecrawlPolicy>
A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.
schema_change_policy: Option<SchemaChangePolicy>
The policy that specifies update and delete behaviors for the crawler.
lineage_configuration: Option<LineageConfiguration>
A configuration that specifies whether data lineage is enabled for the crawler.
state: Option<CrawlerState>
Indicates whether the crawler is running, or whether a run is pending.
table_prefix: Option<String>
The prefix added to the names of tables that are created.
schedule: Option<Schedule>
For scheduled crawlers, the schedule when the crawler runs.
crawl_elapsed_time: i64
If the crawler is running, contains the total time elapsed since the last crawl began.
creation_time: Option<DateTime>
The time that the crawler was created.
last_updated: Option<DateTime>
The time that the crawler was last updated.
last_crawl: Option<LastCrawlInfo>
The status of the last crawl, and potentially error information if an error occurred.
version: i64
The version of the crawler.
configuration: Option<String>
Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Setting crawler configuration options.
crawler_security_configuration: Option<String>
The name of the SecurityConfiguration
structure to be used by this crawler.
lake_formation_configuration: Option<LakeFormationConfiguration>
Specifies whether the crawler should use Lake Formation credentials for the crawler instead of the IAM role credentials.
Implementations§
Source§impl Crawler
impl Crawler
Sourcepub fn role(&self) -> Option<&str>
pub fn role(&self) -> Option<&str>
The Amazon Resource Name (ARN) of an IAM role that's used to access customer resources, such as Amazon Simple Storage Service (Amazon S3) data.
Sourcepub fn targets(&self) -> Option<&CrawlerTargets>
pub fn targets(&self) -> Option<&CrawlerTargets>
A collection of targets to crawl.
Sourcepub fn database_name(&self) -> Option<&str>
pub fn database_name(&self) -> Option<&str>
The name of the database in which the crawler's output is stored.
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the crawler.
Sourcepub fn classifiers(&self) -> &[String]
pub fn classifiers(&self) -> &[String]
A list of UTF-8 strings that specify the custom classifiers that are associated with the crawler.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .classifiers.is_none()
.
Sourcepub fn recrawl_policy(&self) -> Option<&RecrawlPolicy>
pub fn recrawl_policy(&self) -> Option<&RecrawlPolicy>
A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.
Sourcepub fn schema_change_policy(&self) -> Option<&SchemaChangePolicy>
pub fn schema_change_policy(&self) -> Option<&SchemaChangePolicy>
The policy that specifies update and delete behaviors for the crawler.
Sourcepub fn lineage_configuration(&self) -> Option<&LineageConfiguration>
pub fn lineage_configuration(&self) -> Option<&LineageConfiguration>
A configuration that specifies whether data lineage is enabled for the crawler.
Sourcepub fn state(&self) -> Option<&CrawlerState>
pub fn state(&self) -> Option<&CrawlerState>
Indicates whether the crawler is running, or whether a run is pending.
Sourcepub fn table_prefix(&self) -> Option<&str>
pub fn table_prefix(&self) -> Option<&str>
The prefix added to the names of tables that are created.
Sourcepub fn schedule(&self) -> Option<&Schedule>
pub fn schedule(&self) -> Option<&Schedule>
For scheduled crawlers, the schedule when the crawler runs.
Sourcepub fn crawl_elapsed_time(&self) -> i64
pub fn crawl_elapsed_time(&self) -> i64
If the crawler is running, contains the total time elapsed since the last crawl began.
Sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The time that the crawler was created.
Sourcepub fn last_updated(&self) -> Option<&DateTime>
pub fn last_updated(&self) -> Option<&DateTime>
The time that the crawler was last updated.
Sourcepub fn last_crawl(&self) -> Option<&LastCrawlInfo>
pub fn last_crawl(&self) -> Option<&LastCrawlInfo>
The status of the last crawl, and potentially error information if an error occurred.
Sourcepub fn configuration(&self) -> Option<&str>
pub fn configuration(&self) -> Option<&str>
Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Setting crawler configuration options.
Sourcepub fn crawler_security_configuration(&self) -> Option<&str>
pub fn crawler_security_configuration(&self) -> Option<&str>
The name of the SecurityConfiguration
structure to be used by this crawler.
Sourcepub fn lake_formation_configuration(
&self,
) -> Option<&LakeFormationConfiguration>
pub fn lake_formation_configuration( &self, ) -> Option<&LakeFormationConfiguration>
Specifies whether the crawler should use Lake Formation credentials for the crawler instead of the IAM role credentials.
Trait Implementations§
impl StructuralPartialEq for Crawler
Auto Trait Implementations§
impl Freeze for Crawler
impl RefUnwindSafe for Crawler
impl Send for Crawler
impl Sync for Crawler
impl Unpin for Crawler
impl UnwindSafe for Crawler
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);