pub enum PlanError {
Show 110 variants
Unsupported {
feature: String,
discussion_no: Option<usize>,
},
NeverSupported {
feature: String,
documentation_link: Option<String>,
details: Option<String>,
},
UnknownColumn {
table: Option<PartialItemName>,
column: ColumnName,
similar: Box<[ColumnName]>,
},
UngroupedColumn {
table: Option<PartialItemName>,
column: ColumnName,
},
WrongJoinTypeForLateralColumn {
table: Option<PartialItemName>,
column: ColumnName,
},
AmbiguousColumn(ColumnName),
TooManyColumns {
max_num_columns: usize,
req_num_columns: usize,
},
ColumnAlreadyExists {
column_name: ColumnName,
object_name: String,
},
AmbiguousTable(PartialItemName),
UnknownColumnInUsingClause {
column: ColumnName,
join_side: JoinSide,
},
AmbiguousColumnInUsingClause {
column: ColumnName,
join_side: JoinSide,
},
MisqualifiedName(String),
OverqualifiedDatabaseName(String),
OverqualifiedSchemaName(String),
UnderqualifiedColumnName(String),
SubqueriesDisallowed {
context: String,
},
UnknownParameter(usize),
ParameterNotAllowed(String),
WrongParameterType(usize, String, String),
RecursionLimit(RecursionLimitError),
StrconvParse(ParseError),
Catalog(CatalogError),
UpsertSinkWithoutKey,
UpsertSinkWithInvalidKey {
name: String,
desired_key: Vec<String>,
valid_keys: Vec<Vec<String>>,
},
InvalidWmrRecursionLimit(String),
InvalidNumericMaxScale(InvalidNumericMaxScaleError),
InvalidCharLength(InvalidCharLengthError),
InvalidId(CatalogItemId),
InvalidIdent(IdentError),
InvalidObject(Box<ResolvedItemName>),
InvalidObjectType {
expected_type: SystemObjectType,
actual_type: SystemObjectType,
object_name: String,
},
InvalidPrivilegeTypes {
invalid_privileges: AclMode,
object_description: ErrorMessageObjectDescription,
},
InvalidVarCharMaxLength(InvalidVarCharMaxLengthError),
InvalidTimestampPrecision(InvalidTimestampPrecisionError),
InvalidSecret(Box<ResolvedItemName>),
InvalidTemporarySchema,
InvalidCast {
name: String,
ccx: CastContext,
from: String,
to: String,
},
InvalidTable {
name: String,
},
InvalidVersion {
name: String,
version: String,
},
MangedReplicaName(String),
ParserStatement(ParserStatementError),
Parser(ParserError),
DropViewOnMaterializedView(String),
DependentObjectsStillExist {
object_type: String,
object_name: String,
dependents: Vec<(String, String)>,
},
AlterViewOnMaterializedView(String),
ShowCreateViewOnMaterializedView(String),
ExplainViewOnMaterializedView(String),
UnacceptableTimelineName(String),
FetchingCsrSchemaFailed {
schema_lookup: String,
cause: Arc<dyn Error + Send + Sync>,
},
PostgresConnectionErr {
cause: Arc<PostgresError>,
},
MySqlConnectionErr {
cause: Arc<MySqlError>,
},
SqlServerConnectionErr {
cause: Arc<SqlServerError>,
},
SubsourceNameConflict {
name: UnresolvedItemName,
upstream_references: Vec<UnresolvedItemName>,
},
SubsourceDuplicateReference {
name: UnresolvedItemName,
target_names: Vec<UnresolvedItemName>,
},
NoTablesFoundForSchemas(Vec<String>),
InvalidProtobufSchema {
cause: OperationFailedError,
},
InvalidOptionValue {
option_name: String,
err: Box<PlanError>,
},
UnexpectedDuplicateReference {
name: UnresolvedItemName,
},
RecursiveTypeMismatch(String, Vec<String>, Vec<String>),
UnknownFunction {
name: String,
arg_types: Vec<String>,
},
IndistinctFunction {
name: String,
arg_types: Vec<String>,
},
UnknownOperator {
name: String,
arg_types: Vec<String>,
},
IndistinctOperator {
name: String,
arg_types: Vec<String>,
},
InvalidPrivatelinkAvailabilityZone {
name: String,
supported_azs: BTreeSet<String>,
},
DuplicatePrivatelinkAvailabilityZone {
duplicate_azs: BTreeSet<String>,
},
InvalidSchemaName,
ItemAlreadyExists {
name: String,
item_type: CatalogItemType,
},
ManagedCluster {
cluster_name: String,
},
InvalidKeysInSubscribeEnvelopeUpsert,
InvalidKeysInSubscribeEnvelopeDebezium,
InvalidPartitionByEnvelopeDebezium {
column_name: String,
},
InvalidOrderByInSubscribeWithinTimestampOrderBy,
FromValueRequiresParen,
VarError(VarError),
UnsolvablePolymorphicFunctionInput,
ShowCommandInView,
WebhookValidationDoesNotUseColumns,
WebhookValidationNonDeterministic,
InternalFunctionCall,
CommentTooLong {
length: usize,
max_size: usize,
},
InvalidTimestampInterval {
min: Duration,
max: Duration,
requested: Duration,
},
InvalidGroupSizeHints,
PgSourcePurification(PgSourcePurificationError),
KafkaSourcePurification(KafkaSourcePurificationError),
KafkaSinkPurification(KafkaSinkPurificationError),
IcebergSinkPurification(IcebergSinkPurificationError),
LoadGeneratorSourcePurification(LoadGeneratorSourcePurificationError),
CsrPurification(CsrPurificationError),
MySqlSourcePurification(MySqlSourcePurificationError),
SqlServerSourcePurificationError(SqlServerSourcePurificationError),
UseTablesForSources(String),
MissingName(CatalogItemType),
InvalidRefreshAt,
InvalidRefreshEveryAlignedTo,
CreateReplicaFailStorageObjects {
current_replica_count: usize,
internal_replica_count: usize,
hypothetical_replica_count: usize,
},
MismatchedObjectType {
name: PartialItemName,
is_type: ObjectType,
expected_type: ObjectType,
},
TableContainsUningestableTypes {
name: String,
type_: String,
column: String,
},
RetainHistoryLow {
limit: Duration,
},
RetainHistoryRequired,
UntilReadyTimeoutRequired,
SubsourceResolutionError(ExternalReferenceResolutionError),
Replan(String),
NetworkPolicyLockoutError,
NetworkPolicyInUse,
ConstantExpressionSimplificationFailed(String),
InvalidOffset(String),
UnknownCursor(String),
CopyFromTargetTableDropped {
target_name: String,
},
InvalidAsOfUpTo,
Unstructured(String),
}Variants§
Unsupported
This feature is not yet supported, but may be supported at some point in the future.
NeverSupported
This feature is not supported, and will likely never be supported.
UnknownColumn
UngroupedColumn
WrongJoinTypeForLateralColumn
AmbiguousColumn(ColumnName)
TooManyColumns
ColumnAlreadyExists
AmbiguousTable(PartialItemName)
UnknownColumnInUsingClause
AmbiguousColumnInUsingClause
MisqualifiedName(String)
OverqualifiedDatabaseName(String)
OverqualifiedSchemaName(String)
UnderqualifiedColumnName(String)
SubqueriesDisallowed
UnknownParameter(usize)
ParameterNotAllowed(String)
WrongParameterType(usize, String, String)
RecursionLimit(RecursionLimitError)
StrconvParse(ParseError)
Catalog(CatalogError)
UpsertSinkWithoutKey
UpsertSinkWithInvalidKey
InvalidWmrRecursionLimit(String)
InvalidNumericMaxScale(InvalidNumericMaxScaleError)
InvalidCharLength(InvalidCharLengthError)
InvalidId(CatalogItemId)
InvalidIdent(IdentError)
InvalidObject(Box<ResolvedItemName>)
InvalidObjectType
InvalidPrivilegeTypes
InvalidVarCharMaxLength(InvalidVarCharMaxLengthError)
InvalidTimestampPrecision(InvalidTimestampPrecisionError)
InvalidSecret(Box<ResolvedItemName>)
InvalidTemporarySchema
InvalidCast
InvalidTable
InvalidVersion
MangedReplicaName(String)
ParserStatement(ParserStatementError)
Parser(ParserError)
DropViewOnMaterializedView(String)
DependentObjectsStillExist
AlterViewOnMaterializedView(String)
ShowCreateViewOnMaterializedView(String)
ExplainViewOnMaterializedView(String)
UnacceptableTimelineName(String)
FetchingCsrSchemaFailed
PostgresConnectionErr
Fields
cause: Arc<PostgresError>MySqlConnectionErr
Fields
cause: Arc<MySqlError>SqlServerConnectionErr
Fields
cause: Arc<SqlServerError>SubsourceNameConflict
SubsourceDuplicateReference
NoTablesFoundForSchemas(Vec<String>)
InvalidProtobufSchema
Fields
cause: OperationFailedErrorInvalidOptionValue
UnexpectedDuplicateReference
Fields
name: UnresolvedItemNameRecursiveTypeMismatch(String, Vec<String>, Vec<String>)
Declaration of a recursive type did not match the inferred type.
UnknownFunction
IndistinctFunction
UnknownOperator
IndistinctOperator
InvalidPrivatelinkAvailabilityZone
DuplicatePrivatelinkAvailabilityZone
InvalidSchemaName
ItemAlreadyExists
ManagedCluster
InvalidKeysInSubscribeEnvelopeUpsert
InvalidKeysInSubscribeEnvelopeDebezium
InvalidPartitionByEnvelopeDebezium
InvalidOrderByInSubscribeWithinTimestampOrderBy
FromValueRequiresParen
VarError(VarError)
UnsolvablePolymorphicFunctionInput
ShowCommandInView
WebhookValidationDoesNotUseColumns
WebhookValidationNonDeterministic
InternalFunctionCall
CommentTooLong
InvalidTimestampInterval
InvalidGroupSizeHints
PgSourcePurification(PgSourcePurificationError)
KafkaSourcePurification(KafkaSourcePurificationError)
KafkaSinkPurification(KafkaSinkPurificationError)
IcebergSinkPurification(IcebergSinkPurificationError)
LoadGeneratorSourcePurification(LoadGeneratorSourcePurificationError)
CsrPurification(CsrPurificationError)
MySqlSourcePurification(MySqlSourcePurificationError)
SqlServerSourcePurificationError(SqlServerSourcePurificationError)
UseTablesForSources(String)
MissingName(CatalogItemType)
InvalidRefreshAt
InvalidRefreshEveryAlignedTo
CreateReplicaFailStorageObjects
Fields
MismatchedObjectType
TableContainsUningestableTypes
MZ failed to generate cast for the data type.
RetainHistoryLow
RetainHistoryRequired
UntilReadyTimeoutRequired
SubsourceResolutionError(ExternalReferenceResolutionError)
Replan(String)
NetworkPolicyLockoutError
NetworkPolicyInUse
ConstantExpressionSimplificationFailed(String)
Expected a constant expression that evaluates without an error to a non-null value.
InvalidOffset(String)
UnknownCursor(String)
The named cursor does not exist.
CopyFromTargetTableDropped
InvalidAsOfUpTo
AS OF or UP TO should be an expression that is castable and simplifiable to a non-null mz_timestamp value.
Unstructured(String)
Implementations§
Trait Implementations§
Source§impl Error for PlanError
impl Error for PlanError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<CatalogError> for PlanError
impl From<CatalogError> for PlanError
Source§fn from(e: CatalogError) -> PlanError
fn from(e: CatalogError) -> PlanError
Source§impl From<CsrPurificationError> for PlanError
impl From<CsrPurificationError> for PlanError
Source§fn from(e: CsrPurificationError) -> Self
fn from(e: CsrPurificationError) -> Self
Source§impl From<ExternalReferenceResolutionError> for PlanError
impl From<ExternalReferenceResolutionError> for PlanError
Source§fn from(e: ExternalReferenceResolutionError) -> Self
fn from(e: ExternalReferenceResolutionError) -> Self
Source§impl From<IcebergSinkPurificationError> for PlanError
impl From<IcebergSinkPurificationError> for PlanError
Source§fn from(e: IcebergSinkPurificationError) -> Self
fn from(e: IcebergSinkPurificationError) -> Self
Source§impl From<IdentError> for PlanError
impl From<IdentError> for PlanError
Source§fn from(e: IdentError) -> Self
fn from(e: IdentError) -> Self
Source§impl From<InvalidCharLengthError> for PlanError
impl From<InvalidCharLengthError> for PlanError
Source§fn from(e: InvalidCharLengthError) -> PlanError
fn from(e: InvalidCharLengthError) -> PlanError
Source§impl From<InvalidNumericMaxScaleError> for PlanError
impl From<InvalidNumericMaxScaleError> for PlanError
Source§fn from(e: InvalidNumericMaxScaleError) -> PlanError
fn from(e: InvalidNumericMaxScaleError) -> PlanError
Source§impl From<InvalidTimestampPrecisionError> for PlanError
impl From<InvalidTimestampPrecisionError> for PlanError
Source§fn from(e: InvalidTimestampPrecisionError) -> PlanError
fn from(e: InvalidTimestampPrecisionError) -> PlanError
Source§impl From<InvalidVarCharMaxLengthError> for PlanError
impl From<InvalidVarCharMaxLengthError> for PlanError
Source§fn from(e: InvalidVarCharMaxLengthError) -> PlanError
fn from(e: InvalidVarCharMaxLengthError) -> PlanError
Source§impl From<KafkaSinkPurificationError> for PlanError
impl From<KafkaSinkPurificationError> for PlanError
Source§fn from(e: KafkaSinkPurificationError) -> Self
fn from(e: KafkaSinkPurificationError) -> Self
Source§impl From<KafkaSourcePurificationError> for PlanError
impl From<KafkaSourcePurificationError> for PlanError
Source§fn from(e: KafkaSourcePurificationError) -> Self
fn from(e: KafkaSourcePurificationError) -> Self
Source§impl From<LoadGeneratorSourcePurificationError> for PlanError
impl From<LoadGeneratorSourcePurificationError> for PlanError
Source§fn from(e: LoadGeneratorSourcePurificationError) -> Self
fn from(e: LoadGeneratorSourcePurificationError) -> Self
Source§impl From<MySqlError> for PlanError
impl From<MySqlError> for PlanError
Source§fn from(e: MySqlError) -> PlanError
fn from(e: MySqlError) -> PlanError
Source§impl From<MySqlSourcePurificationError> for PlanError
impl From<MySqlSourcePurificationError> for PlanError
Source§fn from(e: MySqlSourcePurificationError) -> Self
fn from(e: MySqlSourcePurificationError) -> Self
Source§impl From<ParseError> for PlanError
impl From<ParseError> for PlanError
Source§fn from(e: ParseError) -> PlanError
fn from(e: ParseError) -> PlanError
Source§impl From<ParseIntError> for PlanError
impl From<ParseIntError> for PlanError
Source§fn from(e: ParseIntError) -> PlanError
fn from(e: ParseIntError) -> PlanError
Source§impl From<ParserError> for PlanError
impl From<ParserError> for PlanError
Source§fn from(e: ParserError) -> PlanError
fn from(e: ParserError) -> PlanError
Source§impl From<ParserStatementError> for PlanError
impl From<ParserStatementError> for PlanError
Source§fn from(e: ParserStatementError) -> PlanError
fn from(e: ParserStatementError) -> PlanError
Source§impl From<PgSourcePurificationError> for PlanError
impl From<PgSourcePurificationError> for PlanError
Source§fn from(e: PgSourcePurificationError) -> Self
fn from(e: PgSourcePurificationError) -> Self
Source§impl From<PostgresError> for PlanError
impl From<PostgresError> for PlanError
Source§fn from(e: PostgresError) -> PlanError
fn from(e: PostgresError) -> PlanError
Source§impl From<RecursionLimitError> for PlanError
impl From<RecursionLimitError> for PlanError
Source§fn from(e: RecursionLimitError) -> PlanError
fn from(e: RecursionLimitError) -> PlanError
Source§impl From<SqlServerError> for PlanError
impl From<SqlServerError> for PlanError
Source§fn from(e: SqlServerError) -> PlanError
fn from(e: SqlServerError) -> PlanError
Source§impl From<SqlServerSourcePurificationError> for PlanError
impl From<SqlServerSourcePurificationError> for PlanError
Source§fn from(e: SqlServerSourcePurificationError) -> Self
fn from(e: SqlServerSourcePurificationError) -> Self
Source§impl From<TryFromIntError> for PlanError
impl From<TryFromIntError> for PlanError
Source§fn from(e: TryFromIntError) -> PlanError
fn from(e: TryFromIntError) -> PlanError
Auto Trait Implementations§
impl Freeze for PlanError
impl !RefUnwindSafe for PlanError
impl Send for PlanError
impl Sync for PlanError
impl Unpin for PlanError
impl !UnwindSafe for PlanError
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> Downcast for T
impl<T> Downcast for T
Source§impl<E> ErrorExt for E
impl<E> ErrorExt for E
Source§fn display_with_causes(&self) -> ErrorChainFormatter<&Self>
fn display_with_causes(&self) -> ErrorChainFormatter<&Self>
Source§fn to_string_with_causes(&self) -> String
fn to_string_with_causes(&self) -> String
self to a string String, along with the chain of source errors or
causes, if there are any. Read moreSource§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T, U> OverrideFrom<Option<&T>> for Uwhere
U: OverrideFrom<T>,
impl<T, U> OverrideFrom<Option<&T>> for Uwhere
U: OverrideFrom<T>,
Source§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);Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
Source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
RustType::from_proto.Source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
RustType::into_proto.Source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
Source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
std::ops::AddAssign, for types that do not implement AddAssign.Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Source§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
Source§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.