pub struct Args {Show 80 fields
unsafe_mode: bool,
all_features: bool,
listeners_config_path: PathBuf,
external_login_password_mz_system: Option<Password>,
internal_persist_pubsub_listen_addr: SocketAddr,
cors_allowed_origin: Vec<HeaderValue>,
announce_egress_address: Vec<IpNet>,
http_host_name: Option<String>,
internal_console_redirect_url: Option<String>,
tls: TlsCliArgs,
frontegg: FronteggCliArgs,
orchestrator: OrchestratorKind,
orchestrator_kubernetes_scheduler_name: Option<String>,
orchestrator_kubernetes_service_annotation: Vec<KeyValueArg<String, String>>,
orchestrator_kubernetes_service_label: Vec<KeyValueArg<String, String>>,
orchestrator_kubernetes_service_node_selector: Vec<KeyValueArg<String, String>>,
orchestrator_kubernetes_service_affinity: Option<String>,
orchestrator_kubernetes_service_tolerations: Option<String>,
orchestrator_kubernetes_service_account: Option<String>,
orchestrator_kubernetes_context: String,
orchestrator_kubernetes_image_pull_policy: KubernetesImagePullPolicy,
orchestrator_kubernetes_init_container_image: Option<String>,
orchestrator_kubernetes_ephemeral_volume_class: Option<String>,
orchestrator_kubernetes_service_fs_group: Option<i64>,
orchestrator_kubernetes_name_prefix: Option<String>,
orchestrator_kubernetes_disable_pod_metrics_collection: bool,
orchestrator_kubernetes_enable_prometheus_scrape_annotations: bool,
orchestrator_process_wrapper: Option<String>,
orchestrator_process_secrets_directory: Option<PathBuf>,
orchestrator_process_propagate_crashes: bool,
orchestrator_process_tcp_proxy_listen_addr: Option<IpAddr>,
orchestrator_process_prometheus_service_discovery_directory: Option<PathBuf>,
orchestrator_process_scratch_directory: Option<PathBuf>,
orchestrator_kubernetes_coverage: bool,
secrets_controller: SecretsControllerKind,
aws_secrets_controller_tags: Vec<KeyValueArg<String, String>>,
clusterd_image: Option<String>,
deploy_generation: u64,
metadata_backend_url: Option<SensitiveUrl>,
helm_chart_version: Option<String>,
persist_blob_url: SensitiveUrl,
persist_consensus_url: Option<SensitiveUrl>,
persist_pubsub_url: String,
persist_isolated_runtime_threads: Option<isize>,
storage_usage_collection_interval_sec: Duration,
storage_usage_retention_period: Option<Duration>,
timestamp_oracle_url: Option<SensitiveUrl>,
availability_zone: Vec<String>,
cluster_replica_sizes: String,
segment_api_key: Option<String>,
segment_client_side: bool,
test_only_dummy_segment_client: bool,
launchdarkly_sdk_key: Option<String>,
launchdarkly_key_map: Vec<KeyValueArg<String, String>>,
config_sync_timeout: Duration,
config_sync_loop_interval: Option<Duration>,
config_sync_file_path: Option<PathBuf>,
environment_id: EnvironmentId,
bootstrap_role: Option<String>,
bootstrap_default_cluster_replica_size: String,
bootstrap_builtin_system_cluster_replica_size: String,
bootstrap_builtin_catalog_server_cluster_replica_size: String,
bootstrap_builtin_probe_cluster_replica_size: String,
bootstrap_builtin_support_cluster_replica_size: String,
bootstrap_builtin_analytics_cluster_replica_size: String,
bootstrap_default_cluster_replication_factor: u32,
bootstrap_builtin_system_cluster_replication_factor: u32,
bootstrap_builtin_catalog_server_cluster_replication_factor: u32,
bootstrap_builtin_probe_cluster_replication_factor: u32,
bootstrap_builtin_support_cluster_replication_factor: u32,
bootstrap_builtin_analytics_cluster_replication_factor: u32,
system_parameter_default: Vec<KeyValueArg<String, String>>,
license_key: Option<String>,
aws_account_id: Option<String>,
aws_connection_role_arn: Option<String>,
aws_external_id_prefix: Option<AwsExternalIdPrefix>,
aws_privatelink_availability_zones: Option<Vec<String>>,
tracing: TracingCliArgs,
unsafe_builtin_table_fingerprint_whitespace: Option<UnsafeBuiltinTableFingerprintWhitespace>,
unsafe_builtin_table_fingerprint_whitespace_version: usize,
}
Expand description
Manages a single Materialize environment.
Fields§
§unsafe_mode: bool
Enable unsafe features. Unsafe features are those that should never run in production but are appropriate for testing/local development.
all_features: bool
Enables all feature flags, meant only as a tool for local development; this should never be enabled in CI.
listeners_config_path: PathBuf
Path to a file containing the json-formatted configuration of our metrics, HTTP, and sql listeners.
external_login_password_mz_system: Option<Password>
Password for the mz_system user.
internal_persist_pubsub_listen_addr: SocketAddr
The address on which to listen for Persist PubSub connections.
Connections to this address are not subject to encryption, authentication, or access control. Care should be taken to not expose the listen address to the public internet or other unauthorized parties.
cors_allowed_origin: Vec<HeaderValue>
Enable cross-origin resource sharing (CORS) for HTTP requests from the specified origin.
The default allows all local connections. “” allows all. “.domain.com” allows connections from any matching subdomain.
Wildcards in other positions (e.g., “https://.foo.com” or “https://foo..com”) have no effect.
announce_egress_address: Vec<IpNet>
Public CIDR which the cloud environment has configured for egress.
http_host_name: Option<String>
The external host name to connect to the HTTP server of this environment.
Presently used to render webhook URLs for end users in notices and the system catalog. Not used to establish connections directly.
internal_console_redirect_url: Option<String>
The URL of the Materialize console to proxy from the /internal-console endpoint on the internal HTTP server.
tls: TlsCliArgs
TLS arguments.
frontegg: FronteggCliArgs
Frontegg arguments.
orchestrator: OrchestratorKind
The service orchestrator implementation to use.
orchestrator_kubernetes_scheduler_name: Option<String>
Name of a non-default Kubernetes scheduler, if any.
orchestrator_kubernetes_service_annotation: Vec<KeyValueArg<String, String>>
Annotations to apply to all services created by the Kubernetes orchestrator
in the form KEY=VALUE
.
orchestrator_kubernetes_service_label: Vec<KeyValueArg<String, String>>
Labels to apply to all services created by the Kubernetes orchestrator
in the form KEY=VALUE
.
orchestrator_kubernetes_service_node_selector: Vec<KeyValueArg<String, String>>
Node selector to apply to all services created by the Kubernetes
orchestrator in the form KEY=VALUE
.
orchestrator_kubernetes_service_affinity: Option<String>
Affinity to apply to all services created by the Kubernetes orchestrator as a JSON string.
orchestrator_kubernetes_service_tolerations: Option<String>
Tolerations to apply to all services created by the Kubernetes orchestrator as a JSON string.
orchestrator_kubernetes_service_account: Option<String>
The name of a service account to apply to all services created by the Kubernetes orchestrator.
orchestrator_kubernetes_context: String
The Kubernetes context to use with the Kubernetes orchestrator.
This defaults to minikube
to prevent disaster (e.g., connecting to a
production cluster that happens to be the active Kubernetes context.)
orchestrator_kubernetes_image_pull_policy: KubernetesImagePullPolicy
The image pull policy to use for services created by the Kubernetes orchestrator.
orchestrator_kubernetes_init_container_image: Option<String>
The init container for services created by the Kubernetes orchestrator.
orchestrator_kubernetes_ephemeral_volume_class: Option<String>
The Kubernetes StorageClass to use for the ephemeral volume attached to services that request disk.
If unspecified, the Kubernetes orchestrator will refuse to create services that request disk.
orchestrator_kubernetes_service_fs_group: Option<i64>
The optional fs group for service’s pods’ securityContext
.
orchestrator_kubernetes_name_prefix: Option<String>
The prefix to prepend to all kubernetes object names.
orchestrator_kubernetes_disable_pod_metrics_collection: bool
Whether to enable pod metrics collection.
orchestrator_kubernetes_enable_prometheus_scrape_annotations: bool
Whether to annotate pods for prometheus service discovery.
orchestrator_process_wrapper: Option<String>
§orchestrator_process_secrets_directory: Option<PathBuf>
Where the process orchestrator should store secrets.
orchestrator_process_propagate_crashes: bool
Whether the process orchestrator should handle crashes in child processes by crashing the parent process.
orchestrator_process_tcp_proxy_listen_addr: Option<IpAddr>
An IP address on which the process orchestrator should bind TCP proxies for Unix domain sockets.
When specified, for each named port of each created service, the process orchestrator will bind a TCP listener to the specified address that proxies incoming connections to the underlying Unix domain socket. The allocated TCP port will be emitted as a tracing event.
The primary use is live debugging the running child services via tools that do not support Unix domain sockets (e.g., Prometheus, web browsers).
orchestrator_process_prometheus_service_discovery_directory: Option<PathBuf>
A directory in which the process orchestrator should write Prometheus scrape targets, for use with Prometheus’s file-based service discovery.
Each namespaced orchestrator will maintain a single JSON file into the
directory named NAMESPACE.json
containing the scrape targets for all
extant services. The scrape targets will use the TCP proxy address, as
Prometheus does not support scraping over Unix domain sockets.
This option is ignored unless
--orchestrator-process-tcp-proxy-listen-addr
is set.
orchestrator_process_scratch_directory: Option<PathBuf>
A scratch directory that orchestrated processes can use for ephemeral storage.
orchestrator_kubernetes_coverage: bool
Whether to use coverage build and collect coverage information. Not to be used for production, only testing.
secrets_controller: SecretsControllerKind
The secrets controller implementation to use.
The list of tags to be set on AWS Secrets Manager secrets created by the AWS secrets controller.
clusterd_image: Option<String>
The clusterd image reference to use.
deploy_generation: u64
A number representing the environment’s generation.
This is incremented to request that the new process perform a graceful transition of power from the prior generation.
metadata_backend_url: Option<SensitiveUrl>
Can be provided in place of both persist_consensus_url and timestamp_oracle_url in order to point both at the same backend
helm_chart_version: Option<String>
Helm chart version for self-hosted Materialize. This version does not correspond to the
Materialize (core) version (v0.125.0), but is time-based for our twice-a-year helm chart
releases: v25.1.Z, v25.2.Z in 2025, then v26.1.Z, v26.2.Z in 2026, and so on. This version
is displayed in addition in SELECT mz_version()
if set.
persist_blob_url: SensitiveUrl
Where the persist library should store its blob data.
persist_consensus_url: Option<SensitiveUrl>
Where the persist library should perform consensus.
persist_pubsub_url: String
The Persist PubSub URL.
This URL is passed to clusterd
for discovery of the Persist PubSub service.
persist_isolated_runtime_threads: Option<isize>
The number of worker threads created for the IsolatedRuntime used for
storage related tasks. A negative value will subtract from the number
of threads returned by num_cpus::get
.
storage_usage_collection_interval_sec: Duration
The interval in seconds at which to collect storage usage information.
storage_usage_retention_period: Option<Duration>
The period for which to retain usage records. Note that the retention period is only evaluated at server start time, so rebooting the server is required to discard old records.
timestamp_oracle_url: Option<SensitiveUrl>
The PostgreSQL URL for the Postgres-backed timestamp oracle.
availability_zone: Vec<String>
Availability zones in which storage and compute resources may be deployed.
cluster_replica_sizes: String
A map from size name to resource allocations for cluster replicas.
segment_api_key: Option<String>
An API key for Segment. Enables export of audit events to Segment.
segment_client_side: bool
Whether the Segment client is being used on the client side (rather than the server side).
Enabling this causes the Segment server to record the IP address from which the event was sent.
test_only_dummy_segment_client: bool
Only create a dummy segment client when no segment api key is provided, only to get more testing coverage.
launchdarkly_sdk_key: Option<String>
An SDK key for LaunchDarkly.
Setting this in combination with Self::config_sync_loop_interval
will enable synchronization of LaunchDarkly features with system
configuration parameters.
launchdarkly_key_map: Vec<KeyValueArg<String, String>>
A list of PARAM_NAME=KEY_NAME pairs from system parameter names to LaunchDarkly feature keys.
This is used (so far only for testing purposes) when propagating values from the latter to the former. The identity map is assumed for absent parameter names.
config_sync_timeout: Duration
The duration at which the system parameter synchronization times out during startup.
config_sync_loop_interval: Option<Duration>
The interval in seconds at which to synchronize system parameter values.
If this is not explicitly set, the loop that synchronizes LaunchDarkly
features with system configuration parameters will not run even if
Self::launchdarkly_sdk_key
is present.
config_sync_file_path: Option<PathBuf>
Path to a JSON file containing system parameter values. If specified, this file will be used instead of LaunchDarkly for configuration.
environment_id: EnvironmentId
§bootstrap_role: Option<String>
If set, a role with the provided name will be created with CREATEDB
and CREATECLUSTER
attributes. It will also have CREATE
privileges on
the materialize
database, materialize.public
schema, and
quickstart
cluster.
This option is meant for local development and testing to simplify the initial process of granting attributes and privileges to some default role.
bootstrap_default_cluster_replica_size: String
The size of the default cluster replica if bootstrapping.
bootstrap_builtin_system_cluster_replica_size: String
The size of the builtin system cluster replicas if bootstrapping.
bootstrap_builtin_catalog_server_cluster_replica_size: String
The size of the builtin catalog server cluster replicas if bootstrapping.
bootstrap_builtin_probe_cluster_replica_size: String
The size of the builtin probe cluster replicas if bootstrapping.
bootstrap_builtin_support_cluster_replica_size: String
The size of the builtin support cluster replicas if bootstrapping.
bootstrap_builtin_analytics_cluster_replica_size: String
The size of the builtin analytics cluster replicas if bootstrapping.
bootstrap_default_cluster_replication_factor: u32
§bootstrap_builtin_system_cluster_replication_factor: u32
The replication factor of the builtin system cluster replicas if bootstrapping.
bootstrap_builtin_catalog_server_cluster_replication_factor: u32
The replication factor of the builtin catalog server cluster replicas if bootstrapping.
bootstrap_builtin_probe_cluster_replication_factor: u32
The replication factor of the builtin probe cluster replicas if bootstrapping.
bootstrap_builtin_support_cluster_replication_factor: u32
The replication factor of the builtin support cluster replicas if bootstrapping.
bootstrap_builtin_analytics_cluster_replication_factor: u32
The replication factor of the builtin analytics cluster replicas if bootstrapping.
system_parameter_default: Vec<KeyValueArg<String, String>>
An list of NAME=VALUE pairs used to override static defaults for system parameters.
license_key: Option<String>
File containing a valid Materialize license key.
aws_account_id: Option<String>
The AWS account ID, which will be used to generate ARNs for Materialize-controlled AWS resources.
aws_connection_role_arn: Option<String>
The ARN for a Materialize-controlled role to assume before assuming a customer’s requested role for an AWS connection.
aws_external_id_prefix: Option<AwsExternalIdPrefix>
Prefix for an external ID to be supplied to all AWS AssumeRole operations.
Details: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html
aws_privatelink_availability_zones: Option<Vec<String>>
The list of supported AWS PrivateLink availability zone ids. Must be zone IDs, of format e.g. “use-az1”.
tracing: TracingCliArgs
§unsafe_builtin_table_fingerprint_whitespace: Option<UnsafeBuiltinTableFingerprintWhitespace>
Injects arbitrary whitespace into builtin table fingerprints, which can
trigger builtin item migrations. The amount of whitespace is determined
by
unsafe_builtin_table_fingerprint_whitespace_version
.
This argument is meant for testing only and as the names suggests
should not be set in production.
unsafe_builtin_table_fingerprint_whitespace_version: usize
Controls the amount of whitespace injected by
unsafe_builtin_table_fingerprint_whitespace
.
Incrementing this value can allow triggering multiple builtin
migrations from a single test. This argument is meant for testing only
and as the names suggests should not be set in production.
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.Source§impl Parser for Args
impl Parser for Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl !Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
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<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::Request
Source§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.