pub enum SuiClientCommands {
Show 34 variants ActiveAddress, ActiveEnv, Addresses { sort_by_alias: bool, }, Balance { address: Option<KeyIdentity>, coin_type: Option<String>, with_coins: bool, }, Call { package: ObjectID, module: String, function: String, type_args: Vec<TypeTag>, args: Vec<SuiJsonValue>, gas_price: Option<u64>, opts: OptsWithGas, }, ChainIdentifier, DynamicFieldQuery { id: ObjectID, cursor: Option<ObjectID>, limit: usize, }, Envs, ExecuteSignedTx { tx_bytes: String, signatures: Vec<String>, }, ExecuteCombinedSignedTx { signed_tx_bytes: String, }, Faucet { address: Option<KeyIdentity>, url: Option<String>, }, Gas { address: Option<KeyIdentity>, }, MergeCoin { primary_coin: ObjectID, coin_to_merge: ObjectID, opts: OptsWithGas, }, NewAddress { key_scheme: SignatureScheme, alias: Option<String>, word_length: Option<String>, derivation_path: Option<DerivationPath>, }, NewEnv { alias: String, rpc: String, ws: Option<String>, }, Object { id: ObjectID, bcs: bool, }, Objects { address: Option<KeyIdentity>, }, Pay { input_coins: Vec<ObjectID>, recipients: Vec<KeyIdentity>, amounts: Vec<u64>, opts: OptsWithGas, }, PayAllSui { input_coins: Vec<ObjectID>, recipient: KeyIdentity, opts: Opts, }, PaySui { input_coins: Vec<ObjectID>, recipients: Vec<KeyIdentity>, amounts: Vec<u64>, opts: Opts, }, PTB(PTB), Publish { package_path: PathBuf, build_config: BuildConfig, opts: OptsWithGas, skip_dependency_verification: bool, with_unpublished_dependencies: bool, }, SplitCoin { coin_id: ObjectID, amounts: Option<Vec<u64>>, count: Option<u64>, opts: OptsWithGas, }, Switch { address: Option<KeyIdentity>, env: Option<String>, }, TransactionBlock { digest: TransactionDigest, }, Transfer { to: KeyIdentity, object_id: ObjectID, opts: OptsWithGas, }, TransferSui { to: KeyIdentity, sui_coin_object_id: ObjectID, amount: Option<u64>, opts: Opts, }, Upgrade { package_path: PathBuf, upgrade_capability: ObjectID, build_config: BuildConfig, opts: OptsWithGas, skip_dependency_verification: bool, with_unpublished_dependencies: bool, }, VerifyBytecodeMeter { package_path: Option<PathBuf>, protocol_version: Option<u64>, module_paths: Vec<PathBuf>, build_config: BuildConfig, }, VerifySource { package_path: PathBuf, build_config: BuildConfig, verify_deps: bool, skip_source: bool, address_override: Option<ObjectID>, }, ProfileTransaction { tx_digest: String, profile_output: Option<PathBuf>, }, ReplayTransaction { tx_digest: String, gas_info: bool, ptb_info: bool, executor_version: Option<i64>, protocol_version: Option<i64>, }, ReplayBatch { path: PathBuf, terminate_early: bool, }, ReplayCheckpoints { start: u64, end: u64, terminate_early: bool, },
}

Variants§

§

ActiveAddress

Default address used for commands when none specified

§

ActiveEnv

Default environment used for commands when none specified

§

Addresses

Fields

§sort_by_alias: bool

Sort by alias instead of address

Obtain the Addresses managed by the client.

§

Balance

Fields

§address: Option<KeyIdentity>

Address (or its alias)

§coin_type: Option<String>

Show balance for the specified coin (e.g., 0x2::sui::SUI). All coins will be shown if none is passed.

§with_coins: bool

Show a list with each coin’s object ID and balance

List the coin balance of an address

§

Call

Fields

§package: ObjectID

Object ID of the package, which contains the module

§module: String

The name of the module in the package

§function: String

Function name in module

§type_args: Vec<TypeTag>

Type arguments to the generic function being called. All must be specified, or the call will fail.

§args: Vec<SuiJsonValue>

Simplified ordered args like in the function syntax ObjectIDs, Addresses must be hex strings

§gas_price: Option<u64>

Optional gas price for this call. Currently use only for testing and not in production environments.

Call Move function

§

ChainIdentifier

Query the chain identifier from the rpc endpoint.

§

DynamicFieldQuery

Fields

§id: ObjectID

The ID of the parent object

§cursor: Option<ObjectID>

Optional paging cursor

§limit: usize

Maximum item returned per page

Query a dynamic field by its address.

§

Envs

List all Sui environments

§

ExecuteSignedTx

Fields

§tx_bytes: String

BCS serialized transaction data bytes without its type tag, as base64 encoded string. This is the output of sui client command using –serialize-unsigned-transaction.

§signatures: Vec<String>

A list of Base64 encoded signatures flag || signature || pubkey.

Execute a Signed Transaction. This is useful when the user prefers to sign elsewhere and use this command to execute.

§

ExecuteCombinedSignedTx

Fields

§signed_tx_bytes: String

BCS serialized sender signed data, as base64 encoded string. This is the output of sui client command using –serialize-signed-transaction.

Execute a combined serialized SenderSignedData string.

§

Faucet

Fields

§address: Option<KeyIdentity>

Address (or its alias)

§url: Option<String>

The url to the faucet

Request gas coin from faucet. By default, it will use the active address and the active network.

§

Gas

Fields

§address: Option<KeyIdentity>

Address (or its alias) owning the objects

Obtain all gas objects owned by the address. An address’ alias can be used instead of the address.

§

MergeCoin

Fields

§primary_coin: ObjectID

The address of the coin to merge into.

§coin_to_merge: ObjectID

The address of the coin to be merged.

Merge two coin objects into one coin

§

NewAddress

Fields

§key_scheme: SignatureScheme
§alias: Option<String>

The alias must start with a letter and can contain only letters, digits, hyphens (-), or underscores (_).

§word_length: Option<String>
§derivation_path: Option<DerivationPath>

Generate new address and keypair with keypair scheme flag {ed25519 | secp256k1 | secp256r1} with optional derivation path, default to m/44’/784’/0’/0’/0’ for ed25519 or m/54’/784’/0’/0/0 for secp256k1 or m/74’/784’/0’/0/0 for secp256r1. Word length can be { word12 | word15 | word18 | word21 | word24} default to word12 if not specified.

§

NewEnv

Fields

§alias: String

Add new Sui environment.

§

Object

Fields

§id: ObjectID

Object ID of the object to fetch

§bcs: bool

Return the bcs serialized version of the object

Get object info

§

Objects

Fields

§address: Option<KeyIdentity>

Address owning the object. If no address is provided, it will show all objects owned by sui client active-address.

Obtain all objects owned by the address. It also accepts an address by its alias.

§

Pay

Fields

§input_coins: Vec<ObjectID>

The input coins to be used for pay recipients, following the specified amounts.

§recipients: Vec<KeyIdentity>

The recipient addresses, must be of same length as amounts. Aliases of addresses are also accepted as input.

§amounts: Vec<u64>

The amounts to be paid, following the order of recipients.

Pay coins to recipients following specified amounts, with input coins. Length of recipients must be the same as that of amounts.

§

PayAllSui

Fields

§input_coins: Vec<ObjectID>

The input coins to be used for pay recipients, including the gas coin.

§recipient: KeyIdentity

The recipient address (or its alias if it’s an address in the keystore).

§opts: Opts

Pay all residual SUI coins to the recipient with input coins, after deducting the gas cost. The input coins also include the coin for gas payment, so no extra gas coin is required.

§

PaySui

Fields

§input_coins: Vec<ObjectID>

The input coins to be used for pay recipients, including the gas coin.

§recipients: Vec<KeyIdentity>

The recipient addresses, must be of same length as amounts. Aliases of addresses are also accepted as input.

§amounts: Vec<u64>

The amounts to be paid, following the order of recipients.

§opts: Opts

Pay SUI coins to recipients following following specified amounts, with input coins. Length of recipients must be the same as that of amounts. The input coins also include the coin for gas payment, so no extra gas coin is required.

§

PTB(PTB)

Run a PTB from the provided args

§

Publish

Fields

§package_path: PathBuf

Path to directory containing a Move package

§build_config: BuildConfig

Package build options

§skip_dependency_verification: bool

Publish the package without checking whether compiling dependencies from source results in bytecode matching the dependencies found on-chain.

§with_unpublished_dependencies: bool

Also publish transitive dependencies that have not already been published.

Publish Move modules

§

SplitCoin

Fields

§coin_id: ObjectID

ID of the coin object to split

§amounts: Option<Vec<u64>>

Specific amounts to split out from the coin

§count: Option<u64>

Count of equal-size coins to split into

Split a coin object into multiple coins.

§

Switch

Fields

§address: Option<KeyIdentity>

An address to be used as the active address for subsequent commands. It accepts also the alias of the address.

§env: Option<String>

The RPC server URL (e.g., local rpc server, devnet rpc server, etc) to be used for subsequent commands.

Switch active address and network(e.g., devnet, local rpc server).

§

TransactionBlock

Fields

§digest: TransactionDigest

Digest of the transaction block

Get the effects of executing the given transaction block

§

Transfer

Fields

§to: KeyIdentity

Recipient address (or its alias if it’s an address in the keystore)

§object_id: ObjectID

ID of the object to transfer

Transfer object

§

TransferSui

Fields

§to: KeyIdentity

Recipient address (or its alias if it’s an address in the keystore)

§sui_coin_object_id: ObjectID

ID of the coin to transfer. This is also the gas object.

§amount: Option<u64>

The amount to transfer, if not specified, the entire coin object will be transferred.

§opts: Opts

Transfer SUI, and pay gas with the same SUI coin object. If amount is specified, only the amount is transferred; otherwise the entire object is transferred.

§

Upgrade

Fields

§package_path: PathBuf

Path to directory containing a Move package

§upgrade_capability: ObjectID

ID of the upgrade capability for the package being upgraded.

§build_config: BuildConfig

Package build options

§skip_dependency_verification: bool

Publish the package without checking whether compiling dependencies from source results in bytecode matching the dependencies found on-chain.

§with_unpublished_dependencies: bool

Also publish transitive dependencies that have not already been published.

Upgrade Move modules

§

VerifyBytecodeMeter

Fields

§package_path: Option<PathBuf>

Path to directory containing a Move package, (defaults to the current directory)

§protocol_version: Option<u64>

Protocol version to use for the bytecode verifier (defaults to the latest protocol version)

§module_paths: Vec<PathBuf>

Paths to specific pre-compiled module bytecode to verify (instead of an entire package). Multiple modules can be verified by passing multiple –module flags. They will be treated as if they were one package (subject to the overall package limit).

§build_config: BuildConfig

Package build options

Run the bytecode verifier on the package

§

VerifySource

Fields

§package_path: PathBuf

Path to directory containing a Move package

§build_config: BuildConfig

Package build options

§verify_deps: bool

Verify on-chain dependencies.

§skip_source: bool

Don’t verify source (only valid if –verify-deps is enabled).

§address_override: Option<ObjectID>

If specified, override the addresses for the package’s own modules with this address. Only works for unpublished modules (whose addresses are currently 0x0).

Verify local Move packages against on-chain packages, and optionally their dependencies.

§

ProfileTransaction

Fields

§tx_digest: String

The digest of the transaction to replay

§profile_output: Option<PathBuf>

If specified, overrides the filepath of the output profile, for example – /temp/my_profile_name.json will write output to /temp/my_profile_name_{tx_digest}_{unix_timestamp}.json If an output filepath is not specified, it will output a file gas_profile_{tx_digest}_{unix_timestamp}.json to the working directory

Profile the gas usage of a transaction. Unless an output filepath is not specified, outputs a file gas_profile_{tx_digest}_{unix_timestamp}.json which can be opened in a flamegraph tool such as speedscope.

§

ReplayTransaction

Fields

§tx_digest: String

The digest of the transaction to replay

§gas_info: bool

Log extra gas-related information

§ptb_info: bool

Log information about each programmable transaction command

§executor_version: Option<i64>

Optional version of the executor to use, if not specified defaults to the one originally used for the transaction.

§protocol_version: Option<i64>

Optional protocol version to use, if not specified defaults to the one originally used for the transaction.

Replay a given transaction to view transaction effects. Set environment variable MOVE_VM_STEP=1 to debug.

§

ReplayBatch

Fields

§path: PathBuf

The path to the file of transaction digests to replay, with one digest per line

§terminate_early: bool

If an error is encountered during a transaction, this specifies whether to terminate or continue

Replay transactions listed in a file.

§

ReplayCheckpoints

Fields

§start: u64

The starting checkpoint sequence number of the range of checkpoints to replay

§end: u64

The ending checkpoint sequence number of the range of checkpoints to replay

§terminate_early: bool

If an error is encountered during a transaction, this specifies whether to terminate or continue

Replay all transactions in a range of checkpoints.

Implementations§

source§

impl SuiClientCommands

source

pub async fn execute( self, context: &mut WalletContext ) -> Result<SuiClientCommandResult, Error>

source

pub fn switch_env(config: &mut SuiClientConfig, env: &str) -> Result<(), Error>

Trait Implementations§

source§

impl CommandFactory for SuiClientCommands

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl FromArgMatches for SuiClientCommands

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for SuiClientCommands

§

fn parse() -> Self

Parse from std::env::args_os(), [exit][Error::exit] on error.
§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Self
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, [exit][Error::exit] on error.
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, [exit][Error::exit] on error.
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for SuiClientCommands

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self. Read more
source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can update self. Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Any for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

§

fn type_name(&self) -> &'static str

§

impl<T> AnySync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32 ) -> TaggedParser<'a, Implicit, Self, E>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FutureExt for T

§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

Wrap the input message T in a Request
source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<D> OwoColorize for D

§

fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>
where C: Color,

Set the foreground color generically Read more
§

fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>
where C: Color,

Set the background color generically. Read more
§

fn black(&self) -> FgColorDisplay<'_, Black, Self>

Change the foreground color to black
§

fn on_black(&self) -> BgColorDisplay<'_, Black, Self>

Change the background color to black
§

fn red(&self) -> FgColorDisplay<'_, Red, Self>

Change the foreground color to red
§

fn on_red(&self) -> BgColorDisplay<'_, Red, Self>

Change the background color to red
§

fn green(&self) -> FgColorDisplay<'_, Green, Self>

Change the foreground color to green
§

fn on_green(&self) -> BgColorDisplay<'_, Green, Self>

Change the background color to green
§

fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>

Change the foreground color to yellow
§

fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>

Change the background color to yellow
§

fn blue(&self) -> FgColorDisplay<'_, Blue, Self>

Change the foreground color to blue
§

fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>

Change the background color to blue
§

fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to magenta
§

fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to magenta
§

fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to purple
§

fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to purple
§

fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>

Change the foreground color to cyan
§

fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>

Change the background color to cyan
§

fn white(&self) -> FgColorDisplay<'_, White, Self>

Change the foreground color to white
§

fn on_white(&self) -> BgColorDisplay<'_, White, Self>

Change the background color to white
§

fn default_color(&self) -> FgColorDisplay<'_, Default, Self>

Change the foreground color to the terminal default
§

fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>

Change the background color to the terminal default
§

fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>

Change the foreground color to bright black
§

fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>

Change the background color to bright black
§

fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>

Change the foreground color to bright red
§

fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>

Change the background color to bright red
§

fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>

Change the foreground color to bright green
§

fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>

Change the background color to bright green
§

fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>

Change the foreground color to bright yellow
§

fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>

Change the background color to bright yellow
§

fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>

Change the foreground color to bright blue
§

fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>

Change the background color to bright blue
§

fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright magenta
§

fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright magenta
§

fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright purple
§

fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright purple
§

fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>

Change the foreground color to bright cyan
§

fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>

Change the background color to bright cyan
§

fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>

Change the foreground color to bright white
§

fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>

Change the background color to bright white
§

fn bold(&self) -> BoldDisplay<'_, Self>

Make the text bold
§

fn dimmed(&self) -> DimDisplay<'_, Self>

Make the text dim
§

fn italic(&self) -> ItalicDisplay<'_, Self>

Make the text italicized
§

fn underline(&self) -> UnderlineDisplay<'_, Self>

Make the text italicized
Make the text blink
Make the text blink (but fast!)
§

fn reversed(&self) -> ReversedDisplay<'_, Self>

Swap the foreground and background colors
§

fn hidden(&self) -> HiddenDisplay<'_, Self>

Hide the text
§

fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>

Cross out the text
§

fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the foreground color at runtime. Only use if you do not know which color will be used at compile-time. If the color is constant, use either OwoColorize::fg or a color-specific method, such as OwoColorize::green, Read more
§

fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the background color at runtime. Only use if you do not know what color to use at compile-time. If the color is constant, use either OwoColorize::bg or a color-specific method, such as OwoColorize::on_yellow, Read more
§

fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the foreground color to a specific RGB value.
§

fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the background color to a specific RGB value.
§

fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>

Sets the foreground color to an RGB value.
§

fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>

Sets the background color to an RGB value.
§

fn style(&self, style: Style) -> Styled<&Self>

Apply a runtime-determined style
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> MaybeSend for T
where T: Send,