#[non_exhaustive]pub enum JobConfigInput {
BandMathConfig(BandMathConfigInput),
CloudMaskingConfig(CloudMaskingConfigInput),
CloudRemovalConfig(CloudRemovalConfigInput),
GeoMosaicConfig(GeoMosaicConfigInput),
LandCoverSegmentationConfig(LandCoverSegmentationConfigInput),
ResamplingConfig(ResamplingConfigInput),
StackConfig(StackConfigInput),
TemporalStatisticsConfig(TemporalStatisticsConfigInput),
ZonalStatisticsConfig(ZonalStatisticsConfigInput),
#[non_exhaustive]
Unknown,
}
Expand description
The input structure for the JobConfig in an EarthObservationJob.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BandMathConfig(BandMathConfigInput)
An object containing information about the job configuration for BandMath.
CloudMaskingConfig(CloudMaskingConfigInput)
An object containing information about the job configuration for cloud masking.
CloudRemovalConfig(CloudRemovalConfigInput)
An object containing information about the job configuration for cloud removal.
GeoMosaicConfig(GeoMosaicConfigInput)
An object containing information about the job configuration for geomosaic.
LandCoverSegmentationConfig(LandCoverSegmentationConfigInput)
An object containing information about the job configuration for land cover segmentation.
ResamplingConfig(ResamplingConfigInput)
An object containing information about the job configuration for resampling.
StackConfig(StackConfigInput)
An object containing information about the job configuration for a Stacking Earth Observation job.
TemporalStatisticsConfig(TemporalStatisticsConfigInput)
An object containing information about the job configuration for temporal statistics.
ZonalStatisticsConfig(ZonalStatisticsConfigInput)
An object containing information about the job configuration for zonal statistics.
Unknown
The Unknown
variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown
variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations§
Source§impl JobConfigInput
impl JobConfigInput
Sourcepub fn as_band_math_config(&self) -> Result<&BandMathConfigInput, &Self>
pub fn as_band_math_config(&self) -> Result<&BandMathConfigInput, &Self>
Tries to convert the enum instance into BandMathConfig
, extracting the inner BandMathConfigInput
.
Returns Err(&Self)
if it can’t be converted.
Sourcepub fn is_band_math_config(&self) -> bool
pub fn is_band_math_config(&self) -> bool
Returns true if this is a BandMathConfig
.
Sourcepub fn as_cloud_masking_config(&self) -> Result<&CloudMaskingConfigInput, &Self>
pub fn as_cloud_masking_config(&self) -> Result<&CloudMaskingConfigInput, &Self>
Tries to convert the enum instance into CloudMaskingConfig
, extracting the inner CloudMaskingConfigInput
.
Returns Err(&Self)
if it can’t be converted.
Sourcepub fn is_cloud_masking_config(&self) -> bool
pub fn is_cloud_masking_config(&self) -> bool
Returns true if this is a CloudMaskingConfig
.
Sourcepub fn as_cloud_removal_config(&self) -> Result<&CloudRemovalConfigInput, &Self>
pub fn as_cloud_removal_config(&self) -> Result<&CloudRemovalConfigInput, &Self>
Tries to convert the enum instance into CloudRemovalConfig
, extracting the inner CloudRemovalConfigInput
.
Returns Err(&Self)
if it can’t be converted.
Sourcepub fn is_cloud_removal_config(&self) -> bool
pub fn is_cloud_removal_config(&self) -> bool
Returns true if this is a CloudRemovalConfig
.
Sourcepub fn as_geo_mosaic_config(&self) -> Result<&GeoMosaicConfigInput, &Self>
pub fn as_geo_mosaic_config(&self) -> Result<&GeoMosaicConfigInput, &Self>
Tries to convert the enum instance into GeoMosaicConfig
, extracting the inner GeoMosaicConfigInput
.
Returns Err(&Self)
if it can’t be converted.
Sourcepub fn is_geo_mosaic_config(&self) -> bool
pub fn is_geo_mosaic_config(&self) -> bool
Returns true if this is a GeoMosaicConfig
.
Sourcepub fn as_land_cover_segmentation_config(
&self,
) -> Result<&LandCoverSegmentationConfigInput, &Self>
pub fn as_land_cover_segmentation_config( &self, ) -> Result<&LandCoverSegmentationConfigInput, &Self>
Tries to convert the enum instance into LandCoverSegmentationConfig
, extracting the inner LandCoverSegmentationConfigInput
.
Returns Err(&Self)
if it can’t be converted.
Sourcepub fn is_land_cover_segmentation_config(&self) -> bool
pub fn is_land_cover_segmentation_config(&self) -> bool
Returns true if this is a LandCoverSegmentationConfig
.
Sourcepub fn as_resampling_config(&self) -> Result<&ResamplingConfigInput, &Self>
pub fn as_resampling_config(&self) -> Result<&ResamplingConfigInput, &Self>
Tries to convert the enum instance into ResamplingConfig
, extracting the inner ResamplingConfigInput
.
Returns Err(&Self)
if it can’t be converted.
Sourcepub fn is_resampling_config(&self) -> bool
pub fn is_resampling_config(&self) -> bool
Returns true if this is a ResamplingConfig
.
Sourcepub fn as_stack_config(&self) -> Result<&StackConfigInput, &Self>
pub fn as_stack_config(&self) -> Result<&StackConfigInput, &Self>
Tries to convert the enum instance into StackConfig
, extracting the inner StackConfigInput
.
Returns Err(&Self)
if it can’t be converted.
Sourcepub fn is_stack_config(&self) -> bool
pub fn is_stack_config(&self) -> bool
Returns true if this is a StackConfig
.
Sourcepub fn as_temporal_statistics_config(
&self,
) -> Result<&TemporalStatisticsConfigInput, &Self>
pub fn as_temporal_statistics_config( &self, ) -> Result<&TemporalStatisticsConfigInput, &Self>
Tries to convert the enum instance into TemporalStatisticsConfig
, extracting the inner TemporalStatisticsConfigInput
.
Returns Err(&Self)
if it can’t be converted.
Sourcepub fn is_temporal_statistics_config(&self) -> bool
pub fn is_temporal_statistics_config(&self) -> bool
Returns true if this is a TemporalStatisticsConfig
.
Sourcepub fn as_zonal_statistics_config(
&self,
) -> Result<&ZonalStatisticsConfigInput, &Self>
pub fn as_zonal_statistics_config( &self, ) -> Result<&ZonalStatisticsConfigInput, &Self>
Tries to convert the enum instance into ZonalStatisticsConfig
, extracting the inner ZonalStatisticsConfigInput
.
Returns Err(&Self)
if it can’t be converted.
Sourcepub fn is_zonal_statistics_config(&self) -> bool
pub fn is_zonal_statistics_config(&self) -> bool
Returns true if this is a ZonalStatisticsConfig
.
Sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown
variant.
Trait Implementations§
Source§impl Clone for JobConfigInput
impl Clone for JobConfigInput
Source§fn clone(&self) -> JobConfigInput
fn clone(&self) -> JobConfigInput
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for JobConfigInput
impl Debug for JobConfigInput
Source§impl PartialEq for JobConfigInput
impl PartialEq for JobConfigInput
impl StructuralPartialEq for JobConfigInput
Auto Trait Implementations§
impl Freeze for JobConfigInput
impl RefUnwindSafe for JobConfigInput
impl Send for JobConfigInput
impl Sync for JobConfigInput
impl Unpin for JobConfigInput
impl UnwindSafe for JobConfigInput
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);